fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: field `b` is never read 2 --> $DIR/lint-dead-code-4.rs:7:5 3 | 4LL | struct Foo { 5 | --- field in this struct 6LL | x: usize, 7LL | b: bool, 8 | ^ 9 | 10note: the lint level is defined here 11 --> $DIR/lint-dead-code-4.rs:3:9 12 | 13LL | #![deny(dead_code)] 14 | ^^^^^^^^^ 15 16error: variants `X` and `Y` are never constructed 17 --> $DIR/lint-dead-code-4.rs:15:5 18 | 19LL | enum XYZ { 20 | --- variants in this enum 21LL | X, 22 | ^ 23LL | Y { 24 | ^ 25 26error: enum `ABC` is never used 27 --> $DIR/lint-dead-code-4.rs:24:6 28 | 29LL | enum ABC { 30 | ^^^ 31 32error: fields `b` and `c` are never read 33 --> $DIR/lint-dead-code-4.rs:39:9 34 | 35LL | J { 36 | - fields in this variant 37LL | a: String, 38LL | b: i32, 39 | ^ 40LL | c: i32, 41 | ^ 42 43error: variants `I` and `K` are never constructed 44 --> $DIR/lint-dead-code-4.rs:36:5 45 | 46LL | enum IJK { 47 | --- variants in this enum 48LL | I, 49 | ^ 50... 51LL | K 52 | ^ 53 54error: fields `x` and `c` are never read 55 --> $DIR/lint-dead-code-4.rs:61:5 56 | 57LL | struct Bar { 58 | --- fields in this struct 59LL | x: usize, 60 | ^ 61LL | b: bool, 62LL | c: bool, 63 | ^ 64 65error: aborting due to 6 previous errors 66