]>
Commit | Line | Data |
---|---|---|
e74abb32 XL |
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 | |
923072b8 | 6 | LL | |
e74abb32 XL |
7 | LL | / try { |
8 | LL | | loop { | |
9 | LL | | err()?; | |
10 | LL | | } | |
11 | LL | | } | |
12 | | |_________^ unreachable expression | |
13 | | | |
74b04a01 | 14 | note: the lint level is defined here |
e74abb32 XL |
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 | |
923072b8 | 35 | LL | |
e74abb32 XL |
36 | LL | 42 |
37 | | ^^ unreachable expression | |
38 | ||
ba9703b0 XL |
39 | warning: 3 warnings emitted |
40 |