]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2005-default-binding-mode/for.stderr
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / rfc-2005-default-binding-mode / for.stderr
1 error[E0009]: cannot bind by-move and by-ref in the same pattern
2   --> $DIR/for.rs:6:13
3    |
4 LL |     for (n, mut m) in &tups {
5    |          -  ^^^^^ by-move pattern here
6    |          |
7    |          both by-ref and by-move used
8
9 error[E0507]: cannot move out of a shared reference
10   --> $DIR/for.rs:6:23
11    |
12 LL |     for (n, mut m) in &tups {
13    |             -----     ^^^^^
14    |             |
15    |             data moved here
16    |             move occurs because `m` has type `Foo`, which does not implement the `Copy` trait
17
18 error: aborting due to 2 previous errors
19
20 Some errors have detailed explanations: E0009, E0507.
21 For more information about an error, try `rustc --explain E0009`.