summary refs log tree commit diff
path: root/src/test/ui/reachable/expr_method.stderr
blob: 6d67bfcd54a7a313403723c78c11b7553a7ea3ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: unreachable expression
  --> $DIR/expr_method.rs:25:21
   |
LL |     Foo.foo(return, 22); //~ ERROR unreachable
   |                     ^^
   |
note: lint level defined here
  --> $DIR/expr_method.rs:14:9
   |
LL | #![deny(unreachable_code)]
   |         ^^^^^^^^^^^^^^^^

error: unreachable expression
  --> $DIR/expr_method.rs:30:5
   |
LL |     Foo.bar(return); //~ ERROR unreachable
   |     ^^^^^^^^^^^^^^^

error: aborting due to 2 previous errors