]> git.lizzy.rs Git - rust.git/blob - src/test/ui/reachable/expr_method.stderr
Merge commit '8da837185714cefbb261e93e9846afb11c1dc60e' into sync-rustfmt-subtree
[rust.git] / src / test / ui / reachable / expr_method.stderr
1 error: unreachable expression
2   --> $DIR/expr_method.rs:16:21
3    |
4 LL |     Foo.foo(return, 22);
5    |             ------  ^^ unreachable expression
6    |             |
7    |             any code following this expression is unreachable
8    |
9 note: the lint level is defined here
10   --> $DIR/expr_method.rs:5:9
11    |
12 LL | #![deny(unreachable_code)]
13    |         ^^^^^^^^^^^^^^^^
14
15 error: unreachable call
16   --> $DIR/expr_method.rs:21:9
17    |
18 LL |     Foo.bar(return);
19    |         ^^^ ------ any code following this expression is unreachable
20    |         |
21    |         unreachable call
22
23 error: aborting due to 2 previous errors
24