1 2 3 4 5 6 7 8 9 10 11
#![allow(warnings)] trait MyTrait { } struct Foo<'a> { x: &'a u32 } impl MyTrait for Foo { //~^ ERROR implicit elided lifetime not allowed here } fn main() {}