rust-clippy/tests/ui/crashes/regressions.rs
Philipp Hansch 861b897c54
Add regression test for endless loop
This was fixed in pulldown_cmark 0.7.1, specifically
https://github.com/raphlinus/pulldown-cmark/pull/438
2020-06-01 10:20:17 +02:00

13 lines
221 B
Rust

// run-pass
#![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() {}