rust-clippy/tests/ui/crashes/regressions.rs

11 lines
206 B
Rust

#![allow(clippy::blacklisted_name)]
pub fn foo(bar: *const u8) {
println!("{:#p}", bar);
}
// Regression test for https://github.com/rust-lang/rust-clippy/issues/4917
/// <foo
struct A;
fn main() {}