]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17385.stderr
Merge commit '97e504549371d7640cf011d266e3c17394fdddac' into sync_cg_clif-2021-12-20
[rust.git] / src / test / ui / issues / issue-17385.stderr
1 error[E0382]: use of moved value: `foo`
2   --> $DIR/issue-17385.rs:18:5
3    |
4 LL |     let foo = X(1);
5    |         --- move occurs because `foo` has type `X`, which does not implement the `Copy` trait
6 LL |     drop(foo);
7    |          --- value moved here
8 LL |     match foo {
9    |     ^^^^^^^^^ value used here after move
10
11 error[E0382]: use of moved value: `e`
12   --> $DIR/issue-17385.rs:25:11
13    |
14 LL |     let e = Enum::Variant2;
15    |         - move occurs because `e` has type `Enum`, which does not implement the `Copy` trait
16 LL |     drop(e);
17    |          - value moved here
18 LL |     match e {
19    |           ^ value used here after move
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0382`.