rust/tests/ui/reachable/unreachable-code-ret.rs

9 lines
126 B
Rust

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