1 2 3 4 5 6 7
// error-pattern: ret; in function returning non-nil fn f() { ret; } fn g() -> int { ret; } fn main() { f(); g(); }