]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0509.stderr
Move some E0XXX to `ui`
[rust.git] / src / test / ui / error-codes / E0509.stderr
1 error[E0509]: cannot move out of type `DropStruct`, which implements the `Drop` trait
2   --> $DIR/E0509.rs:26:23
3    |
4 26 |     let fancy_field = drop_struct.fancy; //~ ERROR E0509
5    |                       ^^^^^^^^^^^^^^^^^
6    |                       |
7    |                       cannot move out of here
8    |                       help: consider using a reference instead: `&drop_struct.fancy`
9
10 error: aborting due to previous error
11