summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/crashes/implements-trait.rs
blob: 4502b0147a83ea785cdcff96c0c232b0f07968b8 (plain)
1
2
3
4
5
#[allow(clippy::needless_borrowed_reference)]
fn main() {
    let mut v = Vec::<String>::new();
    let _ = v.iter_mut().filter(|&ref a| a.is_empty());
}