rust/tests/ui/reachable/unreachable-code-ret.rs
2023-01-11 09:32:08 +00:00

9 lines
125 B
Rust

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