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