]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/regions-enum-not-wf.rs
Update compile fail tests to use isize.
[rust.git] / src / test / compile-fail / regions-enum-not-wf.rs
index 0691ad0de732315ecae9bfe702a8f9476c5fc203..0165dbdabf3c23a2525c87a0998905d73be2c7f8 100644 (file)
@@ -18,7 +18,7 @@ enum Ref1<'a, T> { //~ ERROR the parameter type `T` may not live long enough
 
 enum Ref2<'a, T> { //~ ERROR the parameter type `T` may not live long enough
     Ref2Variant1,
-    Ref2Variant2(int, &'a T),
+    Ref2Variant2(isize, &'a T),
 }
 
 enum RefOk<'a, T:'a> {
@@ -26,7 +26,7 @@ enum RefOk<'a, T:'a> {
 }
 
 enum RefIndirect<'a, T> { //~ ERROR the parameter type `T` may not live long enough
-    RefIndirectVariant1(int, RefOk<'a,T>)
+    RefIndirectVariant1(isize, RefOk<'a,T>)
 }
 
 enum RefDouble<'a, 'b, T> { //~ ERROR reference has a longer lifetime than the data