]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-29723.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / issues / issue-29723.stderr
CommitLineData
2c00a5a8 1error[E0382]: use of moved value: `s`
e74abb32 2 --> $DIR/issue-29723.rs:10:13
2c00a5a8 3 |
9fa01778 4LL | let s = String::new();
1b1a35ee 5 | - move occurs because `s` has type `String`, which does not implement the `Copy` trait
9fa01778 6LL | let _s = match 0 {
0531ce1d 7LL | 0 if { drop(s); false } => String::from("oops"),
2c00a5a8
XL
8 | - value moved here
9...
0531ce1d 10LL | s
2c00a5a8 11 | ^ value used here after move
487cf647
FG
12 |
13help: consider cloning the value if the performance cost is acceptable
14 |
15LL | 0 if { drop(s.clone()); false } => String::from("oops"),
16 | ++++++++
2c00a5a8
XL
17
18error: aborting due to previous error
19
0531ce1d 20For more information about this error, try `rustc --explain E0382`.