rust/tests/ui/error-codes/E0106.rs
2023-01-11 09:32:08 +00:00

27 lines
404 B
Rust

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