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

12 lines
208 B
Rust
Raw Normal View History

2018-07-30 09:33:44 +00:00
#![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() {}