blob: db9d5c3d22c1a73b96ca0af04b7d5cc335791228 [file] [log] [blame]
error: unreachable expression
--> $DIR/expr_method.rs:26:21
|
26 | Foo.foo(return, 22); //~ ERROR unreachable
| ^^
|
note: lint level defined here
--> $DIR/expr_method.rs:14:9
|
14 | #![deny(unreachable_code)]
| ^^^^^^^^^^^^^^^^
error: unreachable expression
--> $DIR/expr_method.rs:31:5
|
31 | Foo.bar(return); //~ ERROR unreachable
| ^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors