rust/src/test/ui/unreachable-code-ret.rs
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

9 lines
125 B
Rust

// error-pattern: unreachable statement
#![deny(unreachable_code)]
fn main() {
return;
println!("Paul is dead");
}