]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/issue-30302.stderr
Rollup merge of #106715 - BoxyUwU:new_solver_triagebot, r=lcnr
[rust.git] / tests / ui / lint / issue-30302.stderr
1 warning[E0170]: pattern binding `Nil` is named the same as one of the variants of the type `Stack`
2   --> $DIR/issue-30302.rs:13:9
3    |
4 LL |         Nil => true,
5    |         ^^^ help: to match on the variant, qualify the path: `Stack::Nil`
6    |
7    = note: `#[warn(bindings_with_variant_name)]` on by default
8
9 error: unreachable pattern
10   --> $DIR/issue-30302.rs:15:9
11    |
12 LL |         Nil => true,
13    |         --- matches any value
14 LL |
15 LL |         _ => false
16    |         ^ unreachable pattern
17    |
18 note: the lint level is defined here
19   --> $DIR/issue-30302.rs:4:9
20    |
21 LL | #![deny(unreachable_patterns)]
22    |         ^^^^^^^^^^^^^^^^^^^^
23
24 error: aborting due to previous error; 1 warning emitted
25
26 For more information about this error, try `rustc --explain E0170`.