]> git.proxmox.com Git - rustc.git/blob - src/test/ui/try-block/try-block-unreachable-code-lint.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / try-block / try-block-unreachable-code-lint.stderr
1 warning: unreachable expression
2 --> $DIR/try-block-unreachable-code-lint.rs:41:9
3 |
4 LL | return;
5 | ------ any code following this expression is unreachable
6 LL |
7 LL | / try {
8 LL | | loop {
9 LL | | err()?;
10 LL | | }
11 LL | | }
12 | |_________^ unreachable expression
13 |
14 note: the lint level is defined here
15 --> $DIR/try-block-unreachable-code-lint.rs:6:9
16 |
17 LL | #![warn(unreachable_code)]
18 | ^^^^^^^^^^^^^^^^
19
20 warning: unreachable call
21 --> $DIR/try-block-unreachable-code-lint.rs:52:9
22 |
23 LL | Err(return)
24 | ^^^ ------ any code following this expression is unreachable
25 | |
26 | unreachable call
27
28 warning: unreachable expression
29 --> $DIR/try-block-unreachable-code-lint.rs:63:9
30 |
31 LL | / loop {
32 LL | | err()?;
33 LL | | }
34 | |_________- any code following this expression is unreachable
35 LL |
36 LL | 42
37 | ^^ unreachable expression
38
39 warning: 3 warnings emitted
40