mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
updates to expected output for other ui tests.
This commit is contained in:
parent
b10beb3233
commit
5b748434af
@ -1,4 +1,4 @@
|
||||
error[E0382]: use of moved value: `foo.0`
|
||||
error[E0382]: use of moved value: `foo`
|
||||
--> $DIR/issue-17385.rs:29:11
|
||||
|
|
||||
LL | drop(foo);
|
||||
|
@ -26,7 +26,7 @@ fn main() {
|
||||
_ if { (|| { let bar = b; *bar = false; })();
|
||||
false } => { },
|
||||
&mut true => { println!("You might think we should get here"); },
|
||||
//~^ ERROR use of moved value: `*b` [E0382]
|
||||
//~^ ERROR use of moved value: `b` [E0382]
|
||||
_ => panic!("surely we could never get here, since rustc warns it is unreachable."),
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
error[E0382]: use of moved value: `*b`
|
||||
error[E0382]: use of moved value: `b`
|
||||
--> $DIR/issue-27282-move-match-input-into-guard.rs:28:14
|
||||
|
|
||||
LL | _ if { (|| { let bar = b; *bar = false; })();
|
||||
|
@ -1,4 +1,4 @@
|
||||
error[E0382]: borrow of moved value: `*x`
|
||||
error[E0382]: borrow of moved value: `x`
|
||||
--> $DIR/liveness-use-after-move.rs:16:20
|
||||
|
|
||||
LL | let y = x;
|
||||
|
@ -15,5 +15,5 @@ fn main() {
|
||||
let range = 0..1;
|
||||
let r = range;
|
||||
let x = range.start;
|
||||
//~^ ERROR use of moved value: `range.start` [E0382]
|
||||
//~^ ERROR use of moved value: `range` [E0382]
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
error[E0382]: use of moved value: `range.start`
|
||||
error[E0382]: use of moved value: `range`
|
||||
--> $DIR/issue-51512.rs:17:13
|
||||
|
|
||||
LL | let r = range;
|
||||
|
@ -1,4 +1,4 @@
|
||||
error[E0382]: use of moved value: `u.y`
|
||||
error[E0382]: use of moved value: `u`
|
||||
--> $DIR/union-borrow-move-parent-sibling.rs:29:13
|
||||
|
|
||||
LL | let a = u.x.0;
|
||||
@ -8,7 +8,7 @@ LL | let a = u.y; //~ ERROR use of moved value: `u.y`
|
||||
|
|
||||
= note: move occurs because `u` has type `U`, which does not implement the `Copy` trait
|
||||
|
||||
error[E0382]: use of moved value: `u.y`
|
||||
error[E0382]: use of moved value: `u`
|
||||
--> $DIR/union-borrow-move-parent-sibling.rs:41:13
|
||||
|
|
||||
LL | let a = (u.x.0).0;
|
||||
@ -18,7 +18,7 @@ LL | let a = u.y; //~ ERROR use of moved value: `u.y`
|
||||
|
|
||||
= note: move occurs because `u` has type `U`, which does not implement the `Copy` trait
|
||||
|
||||
error[E0382]: use of moved value: `u.x`
|
||||
error[E0382]: use of moved value: `u`
|
||||
--> $DIR/union-borrow-move-parent-sibling.rs:53:13
|
||||
|
|
||||
LL | let a = *u.y;
|
||||
|
13
src/test/ui/use/use-after-move-self-based-on-type.nll.stderr
Normal file
13
src/test/ui/use/use-after-move-self-based-on-type.nll.stderr
Normal file
@ -0,0 +1,13 @@
|
||||
error[E0382]: use of moved value: `self`
|
||||
--> $DIR/use-after-move-self-based-on-type.rs:22:16
|
||||
|
|
||||
LL | self.bar();
|
||||
| ---- value moved here
|
||||
LL | return self.x; //~ ERROR use of moved value: `self.x`
|
||||
| ^^^^^^ value used here after move
|
||||
|
|
||||
= note: move occurs because `self` has type `S`, which does not implement the `Copy` trait
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0382`.
|
@ -1,4 +1,4 @@
|
||||
error[E0382]: use of moved value: `*self.x`
|
||||
error[E0382]: use of moved value: `self`
|
||||
--> $DIR/use-after-move-self.rs:20:16
|
||||
|
|
||||
LL | self.bar();
|
||||
|
@ -1,4 +1,4 @@
|
||||
error[E0382]: borrow of moved value: `start.test`
|
||||
error[E0382]: borrow of moved value: `start`
|
||||
--> $DIR/walk-struct-literal-with.rs:26:20
|
||||
|
|
||||
LL | let end = Mine{other_val:1, ..start.make_string_bar()};
|
||||
|
Loading…
Reference in New Issue
Block a user