fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1warning: unreachable definition 2 --> $DIR/issue-85071-2.rs:20:9 3 | 4LL | let x = s.f(); 5 | ----- any code following this expression is unreachable 6LL | 7LL | let _y = x; 8 | ^^ unreachable definition 9 | 10note: this expression has type `Foo`, which is uninhabited 11 --> $DIR/issue-85071-2.rs:18:13 12 | 13LL | let x = s.f(); 14 | ^^^^^ 15note: the lint level is defined here 16 --> $DIR/issue-85071-2.rs:7:26 17 | 18LL | #![warn(unused_variables,unreachable_code)] 19 | ^^^^^^^^^^^^^^^^ 20 21warning: unused variable: `x` 22 --> $DIR/issue-85071-2.rs:18:9 23 | 24LL | let x = s.f(); 25 | ^ help: if this is intentional, prefix it with an underscore: `_x` 26 | 27note: the lint level is defined here 28 --> $DIR/issue-85071-2.rs:7:9 29 | 30LL | #![warn(unused_variables,unreachable_code)] 31 | ^^^^^^^^^^^^^^^^ 32 33warning: 2 warnings emitted 34