]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/type_of_a_let.stderr
Rollup merge of #105795 - nicholasbishop:bishop-stabilize-efiapi, r=joshtriplett
[rust.git] / tests / ui / type-alias-impl-trait / type_of_a_let.stderr
1 error[E0382]: use of moved value: `x`
2   --> $DIR/type_of_a_let.rs:16:16
3    |
4 LL |     let x: Foo = 22_u32;
5    |         - move occurs because `x` has type `Foo`, which does not implement the `Copy` trait
6 LL |     let y: Foo = x;
7    |                  - value moved here
8 LL |     same_type((x, y));
9    |                ^ value used here after move
10
11 error[E0382]: use of moved value: `y`
12   --> $DIR/type_of_a_let.rs:17:5
13    |
14 LL |     let y: Foo = x;
15    |         - move occurs because `y` has type `Foo`, which does not implement the `Copy` trait
16 LL |     same_type((x, y));
17    |                   - value moved here
18 LL |     y
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`.