17 lines
492 B
Plaintext
17 lines
492 B
Plaintext
|
error: type could implement `Copy`; consider adding `impl Copy`
|
||
|
--> $DIR/lint-missing-copy-implementations.rs:16:5
|
||
|
|
|
||
|
LL | / pub struct Foo { //~ ERROR type could implement `Copy`; consider adding `impl Copy`
|
||
|
LL | | pub field: i32
|
||
|
LL | | }
|
||
|
| |_____^
|
||
|
|
|
||
|
note: lint level defined here
|
||
|
--> $DIR/lint-missing-copy-implementations.rs:13:9
|
||
|
|
|
||
|
LL | #![deny(missing_copy_implementations)]
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
|
|
||
|
error: aborting due to previous error
|
||
|
|