]>
Commit | Line | Data |
---|---|---|
3157f602 | 1 | struct Foo { |
5bcae85e SL |
2 | x: &bool, |
3 | //~^ ERROR E0106 | |
a7813a04 | 4 | } |
3157f602 XL |
5 | enum Bar { |
6 | A(u8), | |
5bcae85e SL |
7 | B(&bool), |
8 | //~^ ERROR E0106 | |
3157f602 | 9 | } |
5bcae85e SL |
10 | type MyStr = &str; |
11 | //~^ ERROR E0106 | |
a7813a04 | 12 | |
32a655c1 SL |
13 | struct Baz<'a>(&'a str); |
14 | struct Buzz<'a, 'b>(&'a str, &'b str); | |
15 | ||
16 | struct Quux { | |
17 | baz: Baz, | |
18 | //~^ ERROR E0106 | |
dfeec247 | 19 | //~| expected named lifetime parameter |
32a655c1 SL |
20 | buzz: Buzz, |
21 | //~^ ERROR E0106 | |
22 | //~| expected 2 lifetime parameters | |
23 | } | |
24 | ||
a7813a04 | 25 | fn main() { |
54a0048b | 26 | } |