mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
27 lines
404 B
Rust
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() {
|
|
}
|