1 2 3 4 5 6
fn test() -> (i32,) { return; //~^ ERROR `return;` in a function whose return type is not `()` } fn main() {}