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)
9 lines
125 B
Rust
9 lines
125 B
Rust
// error-pattern: unreachable statement
|
|
|
|
#![deny(unreachable_code)]
|
|
|
|
fn main() {
|
|
return;
|
|
println!("Paul is dead");
|
|
}
|