fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.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 | ^ ^ 22 | 23help: consider prefixing with an underscore 24 | 25LL | F::A(_x, y) | F::B(_x, y) => { y }, 26 | ^^ ^^ 27 28error: unused variable: `a` 29 --> $DIR/issue-56685.rs:27:14 30 | 31LL | F::C(a, b) => { 3 } 32 | ^ help: consider prefixing with an underscore: `_a` 33 34error: unused variable: `b` 35 --> $DIR/issue-56685.rs:27:17 36 | 37LL | F::C(a, b) => { 3 } 38 | ^ help: consider prefixing with an underscore: `_b` 39 40error: unused variable: `x` 41 --> $DIR/issue-56685.rs:32:25 42 | 43LL | let _ = if let F::A(x, y) | F::B(x, y) = F::A(1, 2) { 44 | ^ ^ 45 | 46help: consider prefixing with an underscore 47 | 48LL | let _ = if let F::A(_x, y) | F::B(_x, y) = F::A(1, 2) { 49 | ^^ ^^ 50 51error: unused variable: `x` 52 --> $DIR/issue-56685.rs:39:20 53 | 54LL | while let F::A(x, y) | F::B(x, y) = F::A(1, 2) { 55 | ^ ^ 56 | 57help: consider prefixing with an underscore 58 | 59LL | while let F::A(_x, y) | F::B(_x, y) = F::A(1, 2) { 60 | ^^ ^^ 61 62error: aborting due to 6 previous errors 63