about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-03-26 23:31:56 -0700
committerPatrick Walton <pcwalton@mimiga.net>2013-03-26 23:31:56 -0700
commit28885635108c6def3c2503cbcaeba90fbd011f90 (patch)
tree688f6860390df37b2b02ed5fa4f2e728cb9591fa
parentb07b36bbf30c9b7c9120e34b518d47244e981019 (diff)
downloadrust-28885635108c6def3c2503cbcaeba90fbd011f90.tar.gz
rust-28885635108c6def3c2503cbcaeba90fbd011f90.zip
test: Fix botched error message in compile-fail test
-rw-r--r--src/test/compile-fail/regions-in-structs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/regions-in-structs.rs b/src/test/compile-fail/regions-in-structs.rs
index 977c9fc5519..c4f1a8ae465 100644
--- a/src/test/compile-fail/regions-in-structs.rs
+++ b/src/test/compile-fail/regions-in-structs.rs
@@ -17,7 +17,7 @@ struct yes1<'self> {
 }
 
 struct yes2<'self> {
-  x: &'foo uint, //~ ERROR Illegal lifetime 'foo: this lifetime must be declared
+  x: &'foo uint, //~ ERROR Illegal lifetime 'foo: only 'self is allowed
 }
 
 fn main() {}