]> git.lizzy.rs Git - rust.git/blob - src/test/ui/dead-code-ret.stderr
Rollup merge of #65777 - matthewjasper:allow-impl-trait-expansion, r=davidtwco
[rust.git] / src / test / ui / dead-code-ret.stderr
1 error: unreachable statement
2   --> $DIR/dead-code-ret.rs:7:5
3    |
4 LL |     return;
5    |     ------ any code following this expression is unreachable
6 LL |     println!("Paul is dead");
7    |     ^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
8    |
9 note: lint level defined here
10   --> $DIR/dead-code-ret.rs:3:9
11    |
12 LL | #![deny(unreachable_code)]
13    |         ^^^^^^^^^^^^^^^^
14    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
15
16 error: aborting due to previous error
17