diff options
| author | Michael Goulet <michael@errs.io> | 2025-02-09 19:09:43 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-02-09 19:09:45 +0000 |
| commit | 6fe8b8d4a0c359b467918f62c774241dd4a63157 (patch) | |
| tree | e03be81e81e1e585848dc9a689fc62b34faa195d /tests/ui/impl-trait/variance.rs | |
| parent | a26e97be8826d408309fffbd8168362365719f50 (diff) | |
| download | rust-6fe8b8d4a0c359b467918f62c774241dd4a63157.tar.gz rust-6fe8b8d4a0c359b467918f62c774241dd4a63157.zip | |
Remove lifetime_capture_rules_2024 feature
Diffstat (limited to 'tests/ui/impl-trait/variance.rs')
| -rw-r--r-- | tests/ui/impl-trait/variance.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/ui/impl-trait/variance.rs b/tests/ui/impl-trait/variance.rs index 1e359f033ff..bde3a886a4d 100644 --- a/tests/ui/impl-trait/variance.rs +++ b/tests/ui/impl-trait/variance.rs @@ -1,8 +1,6 @@ -//@ revisions: old new e2024 +//@ revisions: old e2024 //@[e2024] edition: 2024 -#![cfg_attr(new, feature(lifetime_capture_rules_2024))] - #![feature(rustc_attrs)] #![allow(internal_features)] #![rustc_variance_of_opaques] @@ -12,15 +10,13 @@ impl<T> Captures<'_> for T {} fn not_captured_early<'a: 'a>() -> impl Sized {} //[old]~^ ['a: *] -//[new]~^^ ['a: *, 'a: o] -//[e2024]~^^^ ['a: *, 'a: o] +//[e2024]~^^ ['a: *, 'a: o] fn captured_early<'a: 'a>() -> impl Sized + Captures<'a> {} //~ ['a: *, 'a: o] fn not_captured_late<'a>(_: &'a ()) -> impl Sized {} //[old]~^ [] -//[new]~^^ ['a: o] -//[e2024]~^^^ ['a: o] +//[e2024]~^^ ['a: o] fn captured_late<'a>(_: &'a ()) -> impl Sized + Captures<'a> {} //~ ['a: o] |
