2015-05-11 23:36:54 -05:00
|
|
|
// error-pattern: `return;` in a function whose return type is not `()`
|
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
|
|
|
|
2015-01-08 04:54:35 -06:00
|
|
|
fn g() -> isize { return; }
|
2011-06-01 19:15:02 -05:00
|
|
|
|
2011-08-19 17:16:48 -05:00
|
|
|
fn main() { f(); g(); }
|