]> git.proxmox.com Git - rustc.git/blame - src/test/ui/try-block/try-block-unreachable-code-lint.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / try-block / try-block-unreachable-code-lint.stderr
CommitLineData
e74abb32
XL
1warning: unreachable expression
2 --> $DIR/try-block-unreachable-code-lint.rs:41:9
3 |
4LL | return;
5 | ------ any code following this expression is unreachable
923072b8 6LL |
e74abb32
XL
7LL | / try {
8LL | | loop {
9LL | | err()?;
10LL | | }
11LL | | }
12 | |_________^ unreachable expression
13 |
74b04a01 14note: the lint level is defined here
e74abb32
XL
15 --> $DIR/try-block-unreachable-code-lint.rs:6:9
16 |
17LL | #![warn(unreachable_code)]
18 | ^^^^^^^^^^^^^^^^
19
20warning: unreachable call
21 --> $DIR/try-block-unreachable-code-lint.rs:52:9
22 |
23LL | Err(return)
24 | ^^^ ------ any code following this expression is unreachable
25 | |
26 | unreachable call
27
28warning: unreachable expression
29 --> $DIR/try-block-unreachable-code-lint.rs:63:9
30 |
31LL | / loop {
32LL | | err()?;
33LL | | }
34 | |_________- any code following this expression is unreachable
923072b8 35LL |
e74abb32
XL
36LL | 42
37 | ^^ unreachable expression
38
ba9703b0
XL
39warning: 3 warnings emitted
40