]> git.proxmox.com Git - rustc.git/blob - src/test/ui/uninhabited/uninhabited-patterns.stderr
New upstream version 1.43.0+dfsg1
[rustc.git] / src / test / ui / uninhabited / uninhabited-patterns.stderr
1 error: unreachable pattern
2 --> $DIR/uninhabited-patterns.rs:27:9
3 |
4 LL | &[..] => (),
5 | ^^^^^
6 |
7 note: the lint level is defined here
8 --> $DIR/uninhabited-patterns.rs:6:9
9 |
10 LL | #![deny(unreachable_patterns)]
11 | ^^^^^^^^^^^^^^^^^^^^
12
13 error: unreachable pattern
14 --> $DIR/uninhabited-patterns.rs:32:9
15 |
16 LL | Ok(box _) => (),
17 | ^^^^^^^^^
18
19 error: unreachable pattern
20 --> $DIR/uninhabited-patterns.rs:34:9
21 |
22 LL | Err(&[..]) => (),
23 | ^^^^^^^^^^
24
25 error: unreachable pattern
26 --> $DIR/uninhabited-patterns.rs:41:9
27 |
28 LL | Err(Ok(_y)) => (),
29 | ^^^^^^^^^^^
30
31 error: unreachable pattern
32 --> $DIR/uninhabited-patterns.rs:44:15
33 |
34 LL | while let Some(_y) = foo() {
35 | ^^^^^^^^
36
37 error: aborting due to 5 previous errors
38