summaryrefslogtreecommitdiffstats
path: root/tests/ui/union/union-lint-dead-code.thirunsafeck.stderr
blob: 6e21584c37c06186867d74468a1c9c8494d5630e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: field `b` is never read
  --> $DIR/union-lint-dead-code.rs:8:5
   |
LL | union Foo {
   |       --- field in this union
LL |     x: usize,
LL |     b: bool,
   |     ^
   |
note: the lint level is defined here
  --> $DIR/union-lint-dead-code.rs:4:9
   |
LL | #![deny(dead_code)]
   |         ^^^^^^^^^

error: aborting due to previous error