rust/tests/ui/return/return-nil.rs

6 lines
71 B
Rust

//@ run-pass
fn f() { let x = (); return x; }
pub fn main() { f(); }