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