struct Foo<'a>(&'a str); struct Buzz<'a, 'b>(&'a str, &'b str); enum Bar { A, B, C, } struct Baz<'a, 'b, 'c> { buzz: Buzz<'a>, //~^ ERROR this struct takes 2 lifetime arguments //~| HELP add missing lifetime argument bar: Bar<'a>, //~^ ERROR this enum takes 0 lifetime arguments //~| HELP remove these generics foo2: Foo<'a, 'b, 'c>, //~^ ERROR this struct takes 1 lifetime argument //~| HELP remove these lifetime arguments } fn main() {}