about summary refs log tree commit diff
path: root/src/test/compile-fail/regions-enum-not-wf.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/regions-enum-not-wf.rs')
-rw-r--r--src/test/compile-fail/regions-enum-not-wf.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/compile-fail/regions-enum-not-wf.rs b/src/test/compile-fail/regions-enum-not-wf.rs
index 0165dbdabf3..3be99817872 100644
--- a/src/test/compile-fail/regions-enum-not-wf.rs
+++ b/src/test/compile-fail/regions-enum-not-wf.rs
@@ -25,11 +25,13 @@ enum RefOk<'a, T:'a> {
     RefOkVariant1(&'a T)
 }
 
-enum RefIndirect<'a, T> { //~ ERROR the parameter type `T` may not live long enough
+enum RefIndirect<'a, T> {
+        //~^ ERROR the parameter type `T` may not live long enough
     RefIndirectVariant1(isize, RefOk<'a,T>)
 }
 
-enum RefDouble<'a, 'b, T> { //~ ERROR reference has a longer lifetime than the data
+enum RefDouble<'a, 'b, T> {
+        //~^ ERROR reference has a longer lifetime than the data
     RefDoubleVariant1(&'a &'b T)
 }