fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: struct `UnusedStruct` is never constructed 2 --> $DIR/lint-dead-code-6.rs:3:8 3 | 4LL | struct UnusedStruct; 5 | ^^^^^^^^^^^^ 6 | 7note: the lint level is defined here 8 --> $DIR/lint-dead-code-6.rs:1:9 9 | 10LL | #![deny(dead_code)] 11 | ^^^^^^^^^ 12 13error: associated functions `unused_impl_fn_1`, `unused_impl_fn_2`, and `unused_impl_fn_3` are never used 14 --> $DIR/lint-dead-code-6.rs:5:8 15 | 16LL | impl UnusedStruct { 17 | ----------------- associated functions in this implementation 18LL | fn unused_impl_fn_1() { 19 | ^^^^^^^^^^^^^^^^ 20... 21LL | fn unused_impl_fn_2(var: i32) { 22 | ^^^^^^^^^^^^^^^^ 23... 24LL | fn unused_impl_fn_3(var: i32) { 25 | ^^^^^^^^^^^^^^^^ 26 27error: aborting due to 2 previous errors 28