1 error: irrefutable `if let` guard pattern
4 LL | Some(x) if let () = x => {}
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
9 note: the lint level is defined here
12 LL | #[deny(irrefutable_let_patterns)]
13 | ^^^^^^^^^^^^^^^^^^^^^^^^
15 error: unreachable pattern
16 --> $DIR/warns.rs:15:25
18 LL | x if let None | None = x => {}
21 note: the lint level is defined here
22 --> $DIR/warns.rs:12:8
24 LL | #[deny(unreachable_patterns)]
25 | ^^^^^^^^^^^^^^^^^^^^
27 error: aborting due to 2 previous errors