rust/src/test/ui/error-codes/E0107.rs
2018-12-25 21:08:33 -07:00

23 lines
422 B
Rust

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() {}