]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2294-if-let-guard/warns.stderr
Rollup merge of #106709 - khuey:disable_split_dwarf_inlining_by_default, r=davidtwco
[rust.git] / tests / ui / rfc-2294-if-let-guard / warns.stderr
1 error: irrefutable `if let` guard pattern
2   --> $DIR/warns.rs:6:24
3    |
4 LL |         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
9 note: the lint level is defined here
10   --> $DIR/warns.rs:3:8
11    |
12 LL | #[deny(irrefutable_let_patterns)]
13    |        ^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error: unreachable pattern
16   --> $DIR/warns.rs:15:25
17    |
18 LL |         x if let None | None = x => {}
19    |                         ^^^^
20    |
21 note: the lint level is defined here
22   --> $DIR/warns.rs:12:8
23    |
24 LL | #[deny(unreachable_patterns)]
25    |        ^^^^^^^^^^^^^^^^^^^^
26
27 error: aborting due to 2 previous errors
28