2015-01-08 05:02:42 -06:00
|
|
|
fn call_rec<F>(mut f: F) -> usize where F: FnMut(usize) -> usize {
|
2018-09-11 20:35:08 -05:00
|
|
|
//~^ WARN function cannot return without recursing
|
2015-02-01 11:44:15 -06:00
|
|
|
(|x| f(x))(call_rec(f)) //~ ERROR cannot move out of `f`
|
2014-09-11 13:59:05 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|