rust/tests/ui/crashes/regressions.rs

14 lines
221 B
Rust
Raw Normal View History

// run-pass
2018-07-30 04:33:44 -05: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() {}