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

12 lines
206 B
Rust
Raw Normal View History

#![allow(clippy::disallowed_names)]
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() {}