rust-clippy/tests/ui/crashes/implements-trait.rs
flip1995 284c359c61 Fix ICE in utils::implements_trait
This only happend when debug_assertions were enabled in rustc
2020-11-23 13:52:27 +01:00

5 lines
154 B
Rust

#[allow(clippy::needless_borrowed_reference)]
fn main() {
let mut v = Vec::<String>::new();
let _ = v.iter_mut().filter(|&ref a| a.is_empty());
}