1 // Make sure that we check that impl trait types implement the traits that they
4 #![feature(type_alias_impl_trait)]
6 type X<T> = impl Clone;
7 //~^ ERROR the trait bound `T: Clone` is not satisfied
9 fn f<T: Clone>(t: T) -> X<T> {
13 fn g<T>(o: Option<X<T>>) -> Option<X<T>> {
18 g(None::<X<&mut ()>>);