]> git.lizzy.rs Git - rust.git/blob - src/test/ui/reachable/expr_method.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / reachable / expr_method.stderr
1 error: unreachable expression
2   --> $DIR/expr_method.rs:25:21
3    |
4 LL |     Foo.foo(return, 22); //~ ERROR unreachable
5    |                     ^^
6    |
7 note: lint level defined here
8   --> $DIR/expr_method.rs:14:9
9    |
10 LL | #![deny(unreachable_code)]
11    |         ^^^^^^^^^^^^^^^^
12
13 error: unreachable expression
14   --> $DIR/expr_method.rs:30:5
15    |
16 LL |     Foo.bar(return); //~ ERROR unreachable
17    |     ^^^^^^^^^^^^^^^
18
19 error: aborting due to 2 previous errors
20