about summary refs log tree commit diff
path: root/tests/ui/iterators/vec-on-unimplemented.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/iterators/vec-on-unimplemented.rs')
-rw-r--r--tests/ui/iterators/vec-on-unimplemented.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/ui/iterators/vec-on-unimplemented.rs b/tests/ui/iterators/vec-on-unimplemented.rs
index 42b5d36bfad..7367fd4c9cd 100644
--- a/tests/ui/iterators/vec-on-unimplemented.rs
+++ b/tests/ui/iterators/vec-on-unimplemented.rs
@@ -1,4 +1,5 @@
+//@ run-rustfix
 fn main() {
-    vec![true, false].map(|v| !v).collect::<Vec<_>>();
-    //~^ ERROR `Vec<bool>` is not an iterator
+    let _ = vec![true, false].map(|v| !v).collect::<Vec<_>>();
+    //~^ ERROR no method named `map` found for struct `Vec<bool>` in the current scope
 }