2011-06-01 19:15:02 -05:00
|
|
|
// error-pattern: ret; in function returning non-nil
|
|
|
|
|
2011-07-27 07:19:39 -05:00
|
|
|
fn f() { ret; }
|
2011-06-01 19:15:02 -05:00
|
|
|
|
2011-07-27 07:19:39 -05:00
|
|
|
fn g() -> int { ret; }
|
2011-06-01 19:15:02 -05:00
|
|
|
|
2011-07-27 07:19:39 -05:00
|
|
|
fn main() { f(); g(); }
|