From cb4ed52fd0d732c9a464937434651810fb666246 Mon Sep 17 00:00:00 2001 From: Alex Zatelepin Date: Sun, 22 Sep 2019 17:09:10 +0300 Subject: [PATCH] fix test after rebase --- .../try-block-unreachable-code-lint.stderr | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/test/ui/try-block/try-block-unreachable-code-lint.stderr b/src/test/ui/try-block/try-block-unreachable-code-lint.stderr index 621d882aa9fb9..54fed04d400e9 100644 --- a/src/test/ui/try-block/try-block-unreachable-code-lint.stderr +++ b/src/test/ui/try-block/try-block-unreachable-code-lint.stderr @@ -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 @@ -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