2022-09-11 00:37:49 -07:00
|
|
|
error: field `b` is never read
|
2024-07-29 17:50:12 +01:00
|
|
|
--> $DIR/offset-of.rs:7:5
|
2022-09-11 00:37:49 -07:00
|
|
|
|
|
|
|
|
LL | struct Alpha {
|
|
|
|
| ----- field in this struct
|
|
|
|
LL | a: (),
|
|
|
|
LL | b: (),
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2024-07-29 17:50:12 +01:00
|
|
|
--> $DIR/offset-of.rs:1:9
|
2022-09-11 00:37:49 -07:00
|
|
|
|
|
|
|
|
LL | #![deny(dead_code)]
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: field `a` is never read
|
2024-07-29 17:50:12 +01:00
|
|
|
--> $DIR/offset-of.rs:12:5
|
2022-09-11 00:37:49 -07:00
|
|
|
|
|
|
|
|
LL | struct Beta {
|
|
|
|
| ---- field in this struct
|
|
|
|
LL | a: (),
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: field `a` is never read
|
2024-07-29 17:50:12 +01:00
|
|
|
--> $DIR/offset-of.rs:17:5
|
2022-09-11 00:37:49 -07:00
|
|
|
|
|
|
|
|
LL | struct Gamma {
|
|
|
|
| ----- field in this struct
|
|
|
|
LL | a: (),
|
|
|
|
| ^
|
|
|
|
|
2023-04-11 16:38:00 -07:00
|
|
|
error: field `b` is never read
|
2024-07-29 17:50:12 +01:00
|
|
|
--> $DIR/offset-of.rs:23:5
|
2023-04-11 16:38:00 -07:00
|
|
|
|
|
|
|
|
LL | struct Delta {
|
|
|
|
| ----- field in this struct
|
|
|
|
LL | a: (),
|
|
|
|
LL | b: (),
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: field `a` is never read
|
2024-07-29 17:50:12 +01:00
|
|
|
--> $DIR/offset-of.rs:34:5
|
2023-04-11 16:38:00 -07:00
|
|
|
|
|
|
|
|
LL | struct Project<T: Trait> {
|
|
|
|
| ------- field in this struct
|
|
|
|
LL | a: u8,
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
2022-09-11 00:37:49 -07:00
|
|
|
|