rust/src/test/ui/dead-code-ret.rs
2018-12-25 21:08:33 -07:00

9 lines
125 B
Rust

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