summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/dead-code/closure-bang.stderr
blob: 119ce11e34a1bd2293ead824e21adf1e84c23faf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: unreachable statement
  --> $DIR/closure-bang.rs:6:5
   |
LL |     x();
   |     --- any code following this expression is unreachable
LL |     println!("Foo bar");
   |     ^^^^^^^^^^^^^^^^^^^ unreachable statement
   |
note: the lint level is defined here
  --> $DIR/closure-bang.rs:1:9
   |
LL | #![deny(unreachable_code)]
   |         ^^^^^^^^^^^^^^^^
   = note: this error originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to previous error