1 #![feature(type_alias_impl_trait)]
4 type Bug<T, U> = impl Fn(T) -> U + Copy;
11 const CONST_BUG: Bug<u8, ()> = unsafe { Moo { y: () }.x };
13 fn make_bug<T, U: From<T>>() -> Bug<T, U> {
14 |x| x.into() //~ ERROR the trait bound `U: From<T>` is not satisfied