diff options
Diffstat (limited to 'src/test/ui/suggestions/suggest-remove-refs-2.rs')
-rw-r--r-- | src/test/ui/suggestions/suggest-remove-refs-2.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/suggestions/suggest-remove-refs-2.rs b/src/test/ui/suggestions/suggest-remove-refs-2.rs new file mode 100644 index 000000000..6c94b12d2 --- /dev/null +++ b/src/test/ui/suggestions/suggest-remove-refs-2.rs @@ -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); + } +} |