]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-29723.stderr
New upstream version 1.33.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-29723.stderr
1 error[E0382]: use of moved value: `s`
2 --> $DIR/issue-29723.rs:12:13
3 |
4 LL | 0 if { drop(s); false } => String::from("oops"),
5 | - value moved here
6 ...
7 LL | s
8 | ^ value used here after move
9 |
10 = note: move occurs because `s` has type `std::string::String`, which does not implement the `Copy` trait
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0382`.