Skip to content

Commit

Permalink
fix test after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
ztlpn committed Sep 22, 2019
1 parent 65251ea commit 58eacaa
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions src/test/ui/try-block/try-block-unreachable-code-lint.stderr
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
warning: unreachable expression
--> $DIR/try-block-unreachable-code-lint.rs:41:9
|
LL | return;
| ------ any code following this expression is unreachable
LL |
LL | / try {
LL | | loop {
LL | | err()?;
LL | | }
LL | | }
| |_________^
| |_________^ unreachable expression
|
note: lint level defined here
--> $DIR/try-block-unreachable-code-lint.rs:6:9
Expand All @@ -18,11 +21,18 @@ warning: unreachable call
--> $DIR/try-block-unreachable-code-lint.rs:52:9
|
LL | Err(return)
| ^^^
| ^^^ ------ any code following this expression is unreachable
| |
| unreachable call

warning: unreachable expression
--> $DIR/try-block-unreachable-code-lint.rs:63:9
|
LL | 42
| ^^
LL | / loop {
LL | | err()?;
LL | | }
| |_________- any code following this expression is unreachable
LL |
LL | 42
| ^^ unreachable expression

0 comments on commit 58eacaa

Please sign in to comment.