diff options
Diffstat (limited to '')
-rw-r--r-- | tests/ui/rfc-2005-default-binding-mode/for.stderr (renamed from src/test/ui/rfc-2005-default-binding-mode/for.stderr) | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/ui/rfc-2005-default-binding-mode/for.stderr b/tests/ui/rfc-2005-default-binding-mode/for.stderr index 9cc20a7bf..07991af6e 100644 --- a/src/test/ui/rfc-2005-default-binding-mode/for.stderr +++ b/tests/ui/rfc-2005-default-binding-mode/for.stderr @@ -6,6 +6,11 @@ LL | for (n, mut m) in &tups { | | | data moved here | move occurs because `m` has type `Foo`, which does not implement the `Copy` trait + | +help: consider borrowing the pattern binding + | +LL | for (n, ref mut m) in &tups { + | +++ error: aborting due to previous error |