Skip to content

Commit 2888563

Browse files
committed
test: Fix botched error message in compile-fail test
1 parent b07b36b commit 2888563

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/compile-fail/regions-in-structs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ struct yes1<'self> {
1717
}
1818

1919
struct yes2<'self> {
20-
x: &'foo uint, //~ ERROR Illegal lifetime 'foo: this lifetime must be declared
20+
x: &'foo uint, //~ ERROR Illegal lifetime 'foo: only 'self is allowed
2121
}
2222

2323
fn main() {}

0 commit comments

Comments
 (0)