]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-issue-48962.stderr
9d53d82265ecaf95af6bdf8c948837e9dc9fa135
[rust.git] / src / test / ui / borrowck / borrowck-issue-48962.stderr
1 error[E0382]: use of moved value: `src`
2   --> $DIR/borrowck-issue-48962.rs:16:5
3    |
4 LL |     {src};
5    |      --- value moved here
6 LL |     src.next = None; //~ ERROR use of moved value: `src` [E0382]
7    |     ^^^^^^^^ value used here after move
8    |
9    = note: move occurs because `src` has type `&mut Node`, which does not implement the `Copy` trait
10
11 error[E0382]: use of moved value: `src`
12   --> $DIR/borrowck-issue-48962.rs:22:5
13    |
14 LL |     {src};
15    |      --- value moved here
16 LL |     src.0 = 66; //~ ERROR use of moved value: `src` [E0382]
17    |     ^^^^^^^^^^ value used here after move
18    |
19    = note: move occurs because `src` has type `&mut (i32, i32)`, which does not implement the `Copy` trait
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0382`.