]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-29723.stderr
Merge commit '97e504549371d7640cf011d266e3c17394fdddac' into sync_cg_clif-2021-12-20
[rust.git] / src / test / ui / issues / issue-29723.stderr
1 error[E0382]: use of moved value: `s`
2   --> $DIR/issue-29723.rs:10:13
3    |
4 LL |     let s = String::new();
5    |         - move occurs because `s` has type `String`, which does not implement the `Copy` trait
6 LL |     let _s = match 0 {
7 LL |         0 if { drop(s); false } => String::from("oops"),
8    |                     - value moved here
9 ...
10 LL |             s
11    |             ^ value used here after move
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0382`.