]>
Commit | Line | Data |
---|---|---|
3157f602 | 1 | struct Foo<'a>(&'a str); |
5bcae85e | 2 | struct Buzz<'a, 'b>(&'a str, &'b str); |
3157f602 XL |
3 | |
4 | enum Bar { | |
5 | A, | |
6 | B, | |
7 | C, | |
8 | } | |
9 | ||
5bcae85e | 10 | struct Baz<'a, 'b, 'c> { |
5bcae85e | 11 | buzz: Buzz<'a>, |
5869c6ff XL |
12 | //~^ ERROR this struct takes 2 lifetime arguments but only 1 lifetime argument was supplied |
13 | //~| HELP add missing lifetime argument | |
14 | ||
5bcae85e | 15 | bar: Bar<'a>, |
5869c6ff XL |
16 | //~^ ERROR this enum takes 0 lifetime arguments but 1 lifetime argument was supplied |
17 | //~| HELP remove these generics | |
18 | ||
5bcae85e | 19 | foo2: Foo<'a, 'b, 'c>, |
5869c6ff XL |
20 | //~^ ERROR this struct takes 1 lifetime argument but 3 lifetime arguments were supplied |
21 | //~| HELP remove these lifetime arguments | |
a7813a04 XL |
22 | } |
23 | ||
b7449926 | 24 | fn main() {} |