File tree 1 file changed +14
-4
lines changed
1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 1
1
warning: unreachable expression
2
2
--> $DIR/try-block-unreachable-code-lint.rs:41:9
3
3
|
4
+ LL | return;
5
+ | ------ any code following this expression is unreachable
6
+ LL |
4
7
LL | / try {
5
8
LL | | loop {
6
9
LL | | err()?;
7
10
LL | | }
8
11
LL | | }
9
- | |_________^
12
+ | |_________^ unreachable expression
10
13
|
11
14
note: lint level defined here
12
15
--> $DIR/try-block-unreachable-code-lint.rs:6:9
@@ -18,11 +21,18 @@ warning: unreachable call
18
21
--> $DIR/try-block-unreachable-code-lint.rs:52:9
19
22
|
20
23
LL | Err(return)
21
- | ^^^
24
+ | ^^^ ------ any code following this expression is unreachable
25
+ | |
26
+ | unreachable call
22
27
23
28
warning: unreachable expression
24
29
--> $DIR/try-block-unreachable-code-lint.rs:63:9
25
30
|
26
- LL | 42
27
- | ^^
31
+ LL | / loop {
32
+ LL | | err()?;
33
+ LL | | }
34
+ | |_________- any code following this expression is unreachable
35
+ LL |
36
+ LL | 42
37
+ | ^^ unreachable expression
28
38
You can’t perform that action at this time.
0 commit comments