summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/suggest-remove-refs-1.fixed
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/suggestions/suggest-remove-refs-1.fixed10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/suggestions/suggest-remove-refs-1.fixed b/src/test/ui/suggestions/suggest-remove-refs-1.fixed
new file mode 100644
index 000000000..a39e0fbd1
--- /dev/null
+++ b/src/test/ui/suggestions/suggest-remove-refs-1.fixed
@@ -0,0 +1,10 @@
+// run-rustfix
+
+fn main() {
+ let v = vec![0, 1, 2, 3];
+
+ for (i, _) in v.iter().enumerate() {
+ //~^ ERROR `&Enumerate<std::slice::Iter<'_, {integer}>>` is not an iterator
+ println!("{}", i);
+ }
+}