rust/tests/ui/lint/dead-code/offset-of.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
968 B
Plaintext
Raw Normal View History

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