We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b07b36b commit 2888563Copy full SHA for 2888563
src/test/compile-fail/regions-in-structs.rs
@@ -17,7 +17,7 @@ struct yes1<'self> {
17
}
18
19
struct yes2<'self> {
20
- x: &'foo uint, //~ ERROR Illegal lifetime 'foo: this lifetime must be declared
+ x: &'foo uint, //~ ERROR Illegal lifetime 'foo: only 'self is allowed
21
22
23
fn main() {}
0 commit comments