about summary refs log tree commit diff
path: root/tests/ui/iterators/vec-on-unimplemented.rs
blob: 7367fd4c9cd783aa2737145cf3981cbb526bb73f (plain)
1
2
3
4
5
//@ run-rustfix
fn main() {
    let _ = vec![true, false].map(|v| !v).collect::<Vec<_>>();
    //~^ ERROR no method named `map` found for struct `Vec<bool>` in the current scope
}