rust/src/test/ui/issues/issue-18919.rs
Esteban Küber bd7ea5441e Use PredicateObligations instead of Predicates
Keep more information about trait binding failures.
2020-04-08 14:40:45 -07: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() {}