1 // Test that we do not yet support elision in associated types, even
2 // when there is just one name we could take from the impl header.
10 impl MyTrait for &i32 {
12 //~^ ERROR missing lifetime specifier
15 impl MyTrait for &u32 {
16 type Output = &'_ i32;
17 //~^ ERROR missing lifetime specifier
20 // This is what you have to do:
21 impl<'a> MyTrait for &'a f32 {
22 type Output = &'a f32;