2018-08-08 12:28:26 +00:00
|
|
|
error: type could implement `Copy`; consider adding `impl Copy`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lint-missing-copy-implementations.rs:6:5
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | / pub struct Foo {
|
2018-08-08 12:28:26 +00:00
|
|
|
LL | | pub field: i32
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lint-missing-copy-implementations.rs:3:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(missing_copy_implementations)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|