diff options
| author | Jack Huey <31162821+jackh726@users.noreply.github.com> | 2022-04-01 13:13:25 -0400 |
|---|---|---|
| committer | Jack Huey <31162821+jackh726@users.noreply.github.com> | 2022-06-03 17:16:41 -0400 |
| commit | 410dcc96741716bf1b4dc9b3bf33f408f220384d (patch) | |
| tree | 7c0b73e8a30be7529a8c9ce4e63a76adfa9327a1 /src/test/ui/object-lifetime/object-lifetime-default-from-rptr-struct-error.rs | |
| parent | 7e9b92cb43a489b34e2bcb8d21f36198e02eedbc (diff) | |
| download | rust-410dcc96741716bf1b4dc9b3bf33f408f220384d.tar.gz rust-410dcc96741716bf1b4dc9b3bf33f408f220384d.zip | |
Fully stabilize NLL
Diffstat (limited to 'src/test/ui/object-lifetime/object-lifetime-default-from-rptr-struct-error.rs')
| -rw-r--r-- | src/test/ui/object-lifetime/object-lifetime-default-from-rptr-struct-error.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/test/ui/object-lifetime/object-lifetime-default-from-rptr-struct-error.rs b/src/test/ui/object-lifetime/object-lifetime-default-from-rptr-struct-error.rs index 2d9a148a389..877486e1557 100644 --- a/src/test/ui/object-lifetime/object-lifetime-default-from-rptr-struct-error.rs +++ b/src/test/ui/object-lifetime/object-lifetime-default-from-rptr-struct-error.rs @@ -1,7 +1,3 @@ -// ignore-compare-mode-nll -// revisions: base nll -// [nll]compile-flags: -Zborrowck=mir - // Test that the lifetime from the enclosing `&` is "inherited" // through the `MyBox` struct. @@ -22,8 +18,7 @@ struct MyBox<T:?Sized> { fn c<'a>(t: &'a MyBox<dyn Test+'a>, mut ss: SomeStruct<'a>) { ss.t = t; - //[base]~^ ERROR mismatched types - //[nll]~^^ ERROR lifetime may not live long enough + //~^ ERROR lifetime may not live long enough } fn main() { |
