fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1warning: fields `a` and `b` are never read 2 --> $DIR/issue-85255.rs:7:5 3 | 4LL | struct Foo { 5 | --- fields in this struct 6LL | a: i32, 7 | ^ 8LL | pub b: i32, 9 | ^ 10 | 11note: the lint level is defined here 12 --> $DIR/issue-85255.rs:4:9 13 | 14LL | #![warn(dead_code)] 15 | ^^^^^^^^^ 16 17warning: methods `a` and `b` are never used 18 --> $DIR/issue-85255.rs:14:8 19 | 20LL | impl Bar { 21 | -------- methods in this implementation 22LL | fn a(&self) -> i32 { 5 } 23 | ^ 24LL | pub fn b(&self) -> i32 { 6 } 25 | ^ 26 27warning: fields `a` and `b` are never read 28 --> $DIR/issue-85255.rs:19:5 29 | 30LL | pub(crate) struct Foo1 { 31 | ---- fields in this struct 32LL | a: i32, 33 | ^ 34LL | pub b: i32, 35 | ^ 36 37warning: methods `a` and `b` are never used 38 --> $DIR/issue-85255.rs:26:8 39 | 40LL | impl Bar1 { 41 | --------- methods in this implementation 42LL | fn a(&self) -> i32 { 5 } 43 | ^ 44LL | pub fn b(&self) -> i32 { 6 } 45 | ^ 46 47warning: fields `a` and `b` are never read 48 --> $DIR/issue-85255.rs:31:5 49 | 50LL | pub(crate) struct Foo2 { 51 | ---- fields in this struct 52LL | a: i32, 53 | ^ 54LL | pub b: i32, 55 | ^ 56 57warning: methods `a` and `b` are never used 58 --> $DIR/issue-85255.rs:38:8 59 | 60LL | impl Bar2 { 61 | --------- methods in this implementation 62LL | fn a(&self) -> i32 { 5 } 63 | ^ 64LL | pub fn b(&self) -> i32 { 6 } 65 | ^ 66 67warning: 6 warnings emitted 68