]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unop-move-semantics.nll.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / unop-move-semantics.nll.stderr
1 error[E0382]: borrow of moved value: `x`
2   --> $DIR/unop-move-semantics.rs:18:5
3    |
4 LL |     !x;
5    |      - value moved here
6 LL | 
7 LL |     x.clone();  //~ ERROR: use of moved value
8    |     ^ value borrowed here after move
9    |
10    = note: move occurs because `x` has type `T`, which does not implement the `Copy` trait
11
12 error[E0507]: cannot move out of borrowed content
13   --> $DIR/unop-move-semantics.rs:34:6
14    |
15 LL |     !*m;  //~ ERROR: cannot move out of borrowed content
16    |      ^^ cannot move out of borrowed content
17
18 error[E0507]: cannot move out of borrowed content
19   --> $DIR/unop-move-semantics.rs:36:6
20    |
21 LL |     !*n;  //~ ERROR: cannot move out of borrowed content
22    |      ^^ cannot move out of borrowed content
23
24 error: aborting due to 3 previous errors
25
26 Some errors occurred: E0382, E0507.
27 For more information about an error, try `rustc --explain E0382`.