2022-09-11 07:37:49 +00:00
|
|
|
error: field `b` is never read
|
2023-04-16 22:40:59 +00:00
|
|
|
--> $DIR/offset-of.rs:8:5
|
2022-09-11 07:37:49 +00:00
|
|
|
|
|
|
|
|
LL | struct Alpha {
|
|
|
|
| ----- field in this struct
|
|
|
|
LL | a: (),
|
|
|
|
LL | b: (),
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2023-04-16 22:40:59 +00:00
|
|
|
--> $DIR/offset-of.rs:2:9
|
2022-09-11 07:37:49 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(dead_code)]
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: field `a` is never read
|
2023-04-16 22:40:59 +00:00
|
|
|
--> $DIR/offset-of.rs:13:5
|
2022-09-11 07:37:49 +00:00
|
|
|
|
|
|
|
|
LL | struct Beta {
|
|
|
|
| ---- field in this struct
|
|
|
|
LL | a: (),
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: field `a` is never read
|
2023-04-16 22:40:59 +00:00
|
|
|
--> $DIR/offset-of.rs:18:5
|
2022-09-11 07:37:49 +00:00
|
|
|
|
|
|
|
|
LL | struct Gamma {
|
|
|
|
| ----- field in this struct
|
|
|
|
LL | a: (),
|
|
|
|
| ^
|
|
|
|
|
2023-04-11 23:38:00 +00:00
|
|
|
error: field `b` is never read
|
2023-04-16 22:40:59 +00:00
|
|
|
--> $DIR/offset-of.rs:24:5
|
2023-04-11 23:38:00 +00:00
|
|
|
|
|
|
|
|
LL | struct Delta {
|
|
|
|
| ----- field in this struct
|
|
|
|
LL | a: (),
|
|
|
|
LL | b: (),
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: field `a` is never read
|
2023-04-16 22:40:59 +00:00
|
|
|
--> $DIR/offset-of.rs:35:5
|
2023-04-11 23:38:00 +00:00
|
|
|
|
|
|
|
|
LL | struct Project<T: Trait> {
|
|
|
|
| ------- field in this struct
|
|
|
|
LL | a: u8,
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
2022-09-11 07:37:49 +00:00
|
|
|
|