blob: c8030495628e27d2cf7542fdf1fc21c84c5df3b0 [file] [log] [blame]
//@ dont-require-annotations: NOTE
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
//~| NOTE expected named lifetime parameter
buzz: Buzz,
//~^ ERROR E0106
//~| NOTE expected 2 lifetime parameters
}
fn main() {
}