mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
16 lines
432 B
Text
16 lines
432 B
Text
error: type could implement `Copy`; consider adding `impl Copy`
|
|
--> $DIR/lint-missing-copy-implementations.rs:6:5
|
|
|
|
|
LL | / pub struct Foo {
|
|
LL | | pub field: i32
|
|
LL | | }
|
|
| |_____^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/lint-missing-copy-implementations.rs:3:9
|
|
|
|
|
LL | #![deny(missing_copy_implementations)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|