1 struct Foo<'a>(&'a str);
2 struct Buzz<'a, 'b>(&'a str, &'b str);
3 struct Qux<'a, T>(&'a T);
12 struct Baz<'a, 'b, 'c> {
14 //~^ ERROR this struct takes 2 lifetime arguments
15 //~| HELP add missing lifetime argument
18 //~^ ERROR this enum takes 0 lifetime arguments
19 //~| HELP remove these generics
21 foo2: Foo<'a, 'b, 'c>,
22 //~^ ERROR this struct takes 1 lifetime argument
23 //~| HELP remove these lifetime arguments
25 qux1: Qux<'a, 'b, i32>,
26 //~^ ERROR this struct takes 1 lifetime argument
27 //~| HELP remove this lifetime argument
29 qux2: Qux<'a, i32, 'b>,
30 //~^ ERROR this struct takes 1 lifetime argument
31 //~| HELP remove this lifetime argument
33 qux3: Qux<'a, 'b, 'c, i32>,
34 //~^ ERROR this struct takes 1 lifetime argument
35 //~| HELP remove these lifetime arguments
37 qux4: Qux<'a, i32, 'b, 'c>,
38 //~^ ERROR this struct takes 1 lifetime argument
39 //~| HELP remove these lifetime arguments
41 qux5: Qux<'a, 'b, i32, 'c>,
42 //~^ ERROR this struct takes 1 lifetime argument
43 //~| HELP remove this lifetime argument
45 quux: Quux<'a, i32, 'b>,
46 //~^ ERROR this struct takes 0 lifetime arguments
47 //~| HELP remove this lifetime argument
55 fn trait_bound_generic<I: T<u8, u16>>(_i: I) {
56 //~^ ERROR this trait takes 0 generic arguments
57 //~| HELP replace the generic bounds with the associated types