about summary refs log tree commit diff
path: root/src/test/ui/variance/variance-use-invariant-struct-1.rs
diff options
context:
space:
mode:
authorJack Huey <31162821+jackh726@users.noreply.github.com>2022-04-01 13:13:25 -0400
committerJack Huey <31162821+jackh726@users.noreply.github.com>2022-06-03 17:16:41 -0400
commit410dcc96741716bf1b4dc9b3bf33f408f220384d (patch)
tree7c0b73e8a30be7529a8c9ce4e63a76adfa9327a1 /src/test/ui/variance/variance-use-invariant-struct-1.rs
parent7e9b92cb43a489b34e2bcb8d21f36198e02eedbc (diff)
downloadrust-410dcc96741716bf1b4dc9b3bf33f408f220384d.tar.gz
rust-410dcc96741716bf1b4dc9b3bf33f408f220384d.zip
Fully stabilize NLL
Diffstat (limited to 'src/test/ui/variance/variance-use-invariant-struct-1.rs')
-rw-r--r--src/test/ui/variance/variance-use-invariant-struct-1.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/test/ui/variance/variance-use-invariant-struct-1.rs b/src/test/ui/variance/variance-use-invariant-struct-1.rs
index 7be03514e01..d40dbceb5f8 100644
--- a/src/test/ui/variance/variance-use-invariant-struct-1.rs
+++ b/src/test/ui/variance/variance-use-invariant-struct-1.rs
@@ -1,10 +1,6 @@
 // Test various uses of structs with distint variances to make sure
 // they permit lifetimes to be approximated as expected.
 
-// revisions: base nll
-// ignore-compare-mode-nll
-//[nll] compile-flags: -Z borrowck=mir
-
 struct SomeStruct<T>(*mut T);
 
 fn foo<'min,'max>(v: SomeStruct<&'max ()>)
@@ -12,8 +8,7 @@ fn foo<'min,'max>(v: SomeStruct<&'max ()>)
     where 'max : 'min
 {
     v
-    //[base]~^ ERROR mismatched types
-    //[nll]~^^ ERROR lifetime may not live long enough
+    //~^ ERROR lifetime may not live long enough
 }
 
 fn bar<'min,'max>(v: SomeStruct<&'min ()>)
@@ -21,8 +16,7 @@ fn bar<'min,'max>(v: SomeStruct<&'min ()>)
     where 'max : 'min
 {
     v
-    //[base]~^ ERROR mismatched types
-    //[nll]~^^ ERROR lifetime may not live long enough
+    //~^ ERROR lifetime may not live long enough
 }