blob: cc3438727a817d7d5ab9edb7d19f4c9fd045ddf0 [file] [log] [blame]
struct Foo {
x: &bool,
//~^ ERROR E0106
}
enum Bar {
A(u8),
B(&bool),
//~^ ERROR E0106
}
type MyStr = &str;
//~^ ERROR E0106
struct Baz<'a>(&'a str);
struct Buzz<'a, 'b>(&'a str, &'b str);
struct Quux {
baz: Baz,
//~^ ERROR E0106
//~| expected named lifetime parameter
buzz: Buzz,
//~^ ERROR E0106
//~| expected 2 lifetime parameters
}
fn main() {
}