1 #![feature(generic_associated_types)] 2 3 trait Foo { 4 type F<'a>; 5 identity<'a>(t: &'a Self::F<'a>) -> &'a Self::F<'a>6 fn identity<'a>(t: &'a Self::F<'a>) -> &'a Self::F<'a> { t } 7 } 8 9 impl <T, T1> Foo for T { 10 type F<T1> = &[u8]; 11 //~^ ERROR: the name `T1` is already used for 12 //~| ERROR: missing lifetime specifier 13 } 14 main()15fn main() {} 16