rust/tests/ui/issues/issue-18919.rs
2023-01-11 09:32:08 +00:00

13 lines
187 B
Rust

type FuncType<'f> = dyn Fn(&isize) -> isize + 'f;
fn ho_func(f: Option<FuncType>) {
//~^ ERROR the size for values of type
}
enum Option<T> {
Some(T),
None,
}
fn main() {}