blob: 13294959bc3cfd5fcce89a1d6e514e851084a86a [file] [log] [blame] [edit]
error[E0184]: the trait `Copy` cannot be implemented for this type; the type has a destructor
--> $DIR/E0184.rs:2:8
|
LL | #[derive(Copy)]
| ---- in this derive macro expansion
LL | struct Foo;
| ^^^ `Copy` not allowed on types with destructors
|
note: destructor declared here
--> $DIR/E0184.rs:5:5
|
LL | fn drop(&mut self) {
| ^^^^^^^^^^^^^^^^^^
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0184`.