summaryrefslogtreecommitdiffstats
path: root/tests/ui/reachable/unreachable-code-ret.stderr
blob: 263a1b5a960fc575743d7fdb81cf6ae02600b8a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: unreachable statement
  --> $DIR/unreachable-code-ret.rs:7:5
   |
LL |     return;
   |     ------ any code following this expression is unreachable
LL |     println!("Paul is dead");
   |     ^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
   |
note: the lint level is defined here
  --> $DIR/unreachable-code-ret.rs:3: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