File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 11warning: 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 |
47LL | / try {
58LL | | loop {
69LL | | err()?;
710LL | | }
811LL | | }
9- | |_________^
12+ | |_________^ unreachable expression
1013 |
1114note: 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 |
2023LL | Err(return)
21- | ^^^
24+ | ^^^ ------ any code following this expression is unreachable
25+ | |
26+ | unreachable call
2227
2328warning: 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
You can’t perform that action at this time.
0 commit comments