2018-08-08 07:28:26 -05:00
|
|
|
error: type could implement `Copy`; consider adding `impl Copy`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-missing-copy-implementations.rs:6:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | / pub struct Foo { //~ ERROR type could implement `Copy`; consider adding `impl Copy`
|
|
|
|
LL | | pub field: i32
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-missing-copy-implementations.rs:3:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(missing_copy_implementations)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|