blob: 35173dcce301210c41471d8713fd2b8ccec307f2 [file] [log] [blame]
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 E0107
//~| expected 2 lifetime arguments
bar: Bar<'a>,
//~^ ERROR E0107
//~| unexpected lifetime argument
foo2: Foo<'a, 'b, 'c>,
//~^ ERROR E0107
//~| unexpected lifetime argument
//~| unexpected lifetime argument
}
fn main() {}