fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error: unreachable pattern 2 --> $DIR/issue-31221.rs:18:9 3 | 4LL | Var3 => (), 5 | ---- matches any value 6LL | Var2 => (), 7 | ^^^^ unreachable pattern 8 | 9note: the lint level is defined here 10 --> $DIR/issue-31221.rs:4:9 11 | 12LL | #![deny(unreachable_patterns)] 13 | ^^^^^^^^^^^^^^^^^^^^ 14 15error: unreachable pattern 16 --> $DIR/issue-31221.rs:24:9 17 | 18LL | &Var3 => (), 19 | ----- matches any value 20LL | &Var2 => (), 21 | ^^^^^ unreachable pattern 22 23error: unreachable pattern 24 --> $DIR/issue-31221.rs:31:9 25 | 26LL | (c, d) => (), 27 | ------ matches any value 28LL | anything => () 29 | ^^^^^^^^ unreachable pattern 30 31error: aborting due to 3 previous errors 32