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