2016-05-25 11:58:07 +00:00
|
|
|
struct Foo {
|
2016-08-05 04:30:41 +00:00
|
|
|
x: &bool,
|
|
|
|
//~^ ERROR E0106
|
2016-05-25 11:58:07 +00:00
|
|
|
}
|
|
|
|
enum Bar {
|
|
|
|
A(u8),
|
2016-08-05 04:30:41 +00:00
|
|
|
B(&bool),
|
|
|
|
//~^ ERROR E0106
|
2016-05-25 11:58:07 +00:00
|
|
|
}
|
2016-08-05 04:30:41 +00:00
|
|
|
type MyStr = &str;
|
|
|
|
//~^ ERROR E0106
|
2016-05-25 11:58:07 +00:00
|
|
|
|
2017-01-13 13:09:56 +00:00
|
|
|
struct Baz<'a>(&'a str);
|
|
|
|
struct Buzz<'a, 'b>(&'a str, &'b str);
|
|
|
|
|
|
|
|
struct Quux {
|
|
|
|
baz: Baz,
|
|
|
|
//~^ ERROR E0106
|
2020-01-16 02:35:48 +00:00
|
|
|
//~| expected named lifetime parameter
|
2017-01-13 13:09:56 +00:00
|
|
|
buzz: Buzz,
|
|
|
|
//~^ ERROR E0106
|
|
|
|
//~| expected 2 lifetime parameters
|
|
|
|
}
|
|
|
|
|
2016-05-25 11:58:07 +00:00
|
|
|
fn main() {
|
|
|
|
}
|