rust/src/test/ui/unreachable-code-ret.stderr
Pi Lanningham 269d38413c Renamed ui/dead-code-ret to ui/unreachable-code-ret
This test was actually about the unreachable_code flag, not dead_code,
so I renamed it for clarity (to prepare for the next commit, where I
plan to move a bunch of the dead_code tests to a single folder)
2019-10-26 21:42:52 -04:00

18 lines
574 B
Plaintext

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: lint level defined here
--> $DIR/unreachable-code-ret.rs:3:9
|
LL | #![deny(unreachable_code)]
| ^^^^^^^^^^^^^^^^
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
error: aborting due to previous error