2019-05-28 13:46:13 -05:00
|
|
|
type FuncType<'f> = dyn Fn(&isize) -> isize + 'f;
|
2015-03-15 15:14:15 -05:00
|
|
|
|
|
|
|
fn ho_func(f: Option<FuncType>) {
|
2018-07-10 16:10:13 -05:00
|
|
|
//~^ ERROR the size for values of type
|
2015-03-15 15:14:15 -05:00
|
|
|
}
|
|
|
|
|
2020-03-03 17:07:04 -06:00
|
|
|
enum Option<T> {
|
|
|
|
Some(T),
|
|
|
|
None,
|
|
|
|
}
|
|
|
|
|
2015-03-15 15:14:15 -05:00
|
|
|
fn main() {}
|