From a4b7ed7a42c716ab9f05e351f003d589124fd55d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:18:58 +0200 Subject: Adding upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/ui/suggestions/suggest-remove-refs-1.stderr | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/ui/suggestions/suggest-remove-refs-1.stderr (limited to 'tests/ui/suggestions/suggest-remove-refs-1.stderr') diff --git a/tests/ui/suggestions/suggest-remove-refs-1.stderr b/tests/ui/suggestions/suggest-remove-refs-1.stderr new file mode 100644 index 000000000..387770535 --- /dev/null +++ b/tests/ui/suggestions/suggest-remove-refs-1.stderr @@ -0,0 +1,17 @@ +error[E0277]: `&Enumerate>` is not an iterator + --> $DIR/suggest-remove-refs-1.rs:6:19 + | +LL | for (i, _) in &v.iter().enumerate() { + | ^^^^^^^^^^^^^^^^^^^^^ `&Enumerate>` is not an iterator + | + = help: the trait `Iterator` is not implemented for `&Enumerate>` + = note: required for `&Enumerate>` to implement `IntoIterator` +help: consider removing the leading `&`-reference + | +LL - for (i, _) in &v.iter().enumerate() { +LL + for (i, _) in v.iter().enumerate() { + | + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0277`. -- cgit v1.2.3