2012-08-01 19:30:05 -05:00
|
|
|
// error-pattern: `return;` in function returning non-nil
|
2011-06-01 19:15:02 -05:00
|
|
|
|
2012-08-01 19:30:05 -05:00
|
|
|
fn f() { return; }
|
2011-06-01 19:15:02 -05:00
|
|
|
|
2012-08-01 19:30:05 -05:00
|
|
|
fn g() -> int { return; }
|
2011-06-01 19:15:02 -05:00
|
|
|
|
2011-08-19 17:16:48 -05:00
|
|
|
fn main() { f(); g(); }
|