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