269d38413c
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)
18 lines
574 B
Plaintext
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
|
|
|