fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error: unused variable: `x` 2 --> $DIR/issue-56685.rs:14:14 3 | 4LL | E::A(x) | E::B(x) => {} 5 | ^ ^ 6 | 7note: lint level defined here 8 --> $DIR/issue-56685.rs:2:9 9 | 10LL | #![deny(unused_variables)] 11 | ^^^^^^^^^^^^^^^^ 12help: consider prefixing with an underscore 13 | 14LL | E::A(_x) | E::B(_x) => {} 15 | ^^ ^^ 16 17error: unused variable: `x` 18 --> $DIR/issue-56685.rs:25:14 19 | 20LL | F::A(x, y) | F::B(x, y) => { y }, 21 | ^ ^ 22help: consider prefixing with an underscore 23 | 24LL | F::A(_x, y) | F::B(_x, y) => { y }, 25 | ^^ ^^ 26 27error: unused variable: `a` 28 --> $DIR/issue-56685.rs:27:14 29 | 30LL | F::C(a, b) => { 3 } 31 | ^ help: consider prefixing with an underscore: `_a` 32 33error: unused variable: `b` 34 --> $DIR/issue-56685.rs:27:17 35 | 36LL | F::C(a, b) => { 3 } 37 | ^ help: consider prefixing with an underscore: `_b` 38 39error: unused variable: `x` 40 --> $DIR/issue-56685.rs:32:25 41 | 42LL | let _ = if let F::A(x, y) | F::B(x, y) = F::A(1, 2) { 43 | ^ ^ 44help: consider prefixing with an underscore 45 | 46LL | let _ = if let F::A(_x, y) | F::B(_x, y) = F::A(1, 2) { 47 | ^^ ^^ 48 49error: unused variable: `x` 50 --> $DIR/issue-56685.rs:39:20 51 | 52LL | while let F::A(x, y) | F::B(x, y) = F::A(1, 2) { 53 | ^ ^ 54help: consider prefixing with an underscore 55 | 56LL | while let F::A(_x, y) | F::B(_x, y) = F::A(1, 2) { 57 | ^^ ^^ 58 59error: aborting due to 6 previous errors 60