Skip to content

Commit 58eacaa

Browse files
committed
fix test after rebase
1 parent 65251ea commit 58eacaa

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
warning: unreachable expression
22
--> $DIR/try-block-unreachable-code-lint.rs:41:9
33
|
4+
LL | return;
5+
| ------ any code following this expression is unreachable
6+
LL |
47
LL | / try {
58
LL | | loop {
69
LL | | err()?;
710
LL | | }
811
LL | | }
9-
| |_________^
12+
| |_________^ unreachable expression
1013
|
1114
note: lint level defined here
1215
--> $DIR/try-block-unreachable-code-lint.rs:6:9
@@ -18,11 +21,18 @@ warning: unreachable call
1821
--> $DIR/try-block-unreachable-code-lint.rs:52:9
1922
|
2023
LL | Err(return)
21-
| ^^^
24+
| ^^^ ------ any code following this expression is unreachable
25+
| |
26+
| unreachable call
2227

2328
warning: unreachable expression
2429
--> $DIR/try-block-unreachable-code-lint.rs:63:9
2530
|
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
2838

0 commit comments

Comments
 (0)