rust/tests/ui/reachable/unreachable-code-ret.rs
2024-02-16 20:02:50 +00:00

9 lines
126 B
Rust

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