fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: irrefutable `if let` guard pattern 2 --> $DIR/warns.rs:6:24 3 | 4LL | Some(x) if let () = x => {} 5 | ^^ 6 | 7 = note: this pattern will always match, so the guard is useless 8 = help: consider removing the guard and adding a `let` inside the match arm 9note: the lint level is defined here 10 --> $DIR/warns.rs:3:8 11 | 12LL | #[deny(irrefutable_let_patterns)] 13 | ^^^^^^^^^^^^^^^^^^^^^^^^ 14 15error: unreachable pattern 16 --> $DIR/warns.rs:15:25 17 | 18LL | x if let None | None = x => {} 19 | ^^^^ 20 | 21note: the lint level is defined here 22 --> $DIR/warns.rs:12:8 23 | 24LL | #[deny(unreachable_patterns)] 25 | ^^^^^^^^^^^^^^^^^^^^ 26 27error: aborting due to 2 previous errors 28