From 64d98f8ee037282c35007b64c2649055c56af1db Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:03 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- .../ui/suggestions/suggest-mut-method-for-loop.stderr | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 src/test/ui/suggestions/suggest-mut-method-for-loop.stderr (limited to 'src/test/ui/suggestions/suggest-mut-method-for-loop.stderr') diff --git a/src/test/ui/suggestions/suggest-mut-method-for-loop.stderr b/src/test/ui/suggestions/suggest-mut-method-for-loop.stderr deleted file mode 100644 index 3eb9e1031..000000000 --- a/src/test/ui/suggestions/suggest-mut-method-for-loop.stderr +++ /dev/null @@ -1,15 +0,0 @@ -error[E0594]: cannot assign to `t.v`, which is behind a `&` reference - --> $DIR/suggest-mut-method-for-loop.rs:14:9 - | -LL | for mut t in buzz.values() { - | ------------- - | | | - | | help: use mutable method: `values_mut()` - | this iterator yields `&` references -... -LL | t.v += 1; - | ^^^^^^^^ `t` is a `&` reference, so the data it refers to cannot be written - -error: aborting due to previous error - -For more information about this error, try `rustc --explain E0594`. -- cgit v1.2.3