rust/tests/ui/try-block/try-block-unreachable-code-lint.stderr

41 lines
1.0 KiB
Plaintext
Raw Normal View History

2019-09-18 10:10:19 -05:00
warning: unreachable expression
--> $DIR/try-block-unreachable-code-lint.rs:41:9
|
2019-09-22 09:09:10 -05:00
LL | return;
| ------ any code following this expression is unreachable
2022-06-08 13:07:59 -05:00
LL |
2019-09-18 10:10:19 -05:00
LL | / try {
LL | | loop {
LL | | err()?;
LL | | }
LL | | }
2019-09-22 09:09:10 -05:00
| |_________^ unreachable expression
2019-09-18 10:10:19 -05:00
|
2020-01-22 17:57:38 -06:00
note: the lint level is defined here
2019-09-18 10:10:19 -05:00
--> $DIR/try-block-unreachable-code-lint.rs:6:9
|
LL | #![warn(unreachable_code)]
| ^^^^^^^^^^^^^^^^
warning: unreachable call
--> $DIR/try-block-unreachable-code-lint.rs:52:9
|
LL | Err(return)
2019-09-22 09:09:10 -05:00
| ^^^ ------ any code following this expression is unreachable
| |
| unreachable call
2019-09-18 10:10:19 -05:00
warning: unreachable expression
--> $DIR/try-block-unreachable-code-lint.rs:63:9
|
2019-09-22 09:09:10 -05:00
LL | / loop {
LL | | err()?;
LL | | }
| |_________- any code following this expression is unreachable
2022-06-08 13:07:59 -05:00
LL |
2019-09-22 09:09:10 -05:00
LL | 42
| ^^ unreachable expression
2019-09-18 10:10:19 -05:00
warning: 3 warnings emitted