]> git.lizzy.rs Git - rust.git/blob - tests/ui/moves/moves-sru-moved-field.stderr
Rollup merge of #106446 - bzEq:fix-unwind-lsda, r=Amanieu
[rust.git] / tests / ui / moves / moves-sru-moved-field.stderr
1 error[E0382]: use of moved value: `f.moved`
2   --> $DIR/moves-sru-moved-field.rs:20:14
3    |
4 LL |     let _b = Foo {noncopyable: g, ..f};
5    |              ------------------------- value moved here
6 LL |     let _c = Foo {noncopyable: h, ..f};
7    |              ^^^^^^^^^^^^^^^^^^^^^^^^^ value used here after move
8    |
9    = note: move occurs because `f.moved` has type `Box<isize>`, which does not implement the `Copy` trait
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0382`.