diff options
| author | Christopher Durham <cad97@cad97.com> | 2022-08-17 06:52:47 -0500 |
|---|---|---|
| committer | Christopher Durham <cad97@cad97.com> | 2022-08-17 06:53:18 -0500 |
| commit | 767239f7403a3808e534da02ca388632eac2bc18 (patch) | |
| tree | 47dba64283f8388caea571b05366c79e8623f6ae /src/test/ui/parser | |
| parent | e9e46c95ce60469f596b8188c439dc278dff6bc4 (diff) | |
| download | rust-767239f7403a3808e534da02ca388632eac2bc18.tar.gz rust-767239f7403a3808e534da02ca388632eac2bc18.zip | |
Reenable early feature-gates as future-compat warnings
Diffstat (limited to 'src/test/ui/parser')
| -rw-r--r-- | src/test/ui/parser/constraints-before-generic-args-syntactic-pass.rs | 4 | ||||
| -rw-r--r-- | src/test/ui/parser/constraints-before-generic-args-syntactic-pass.stderr | 24 |
2 files changed, 28 insertions, 0 deletions
diff --git a/src/test/ui/parser/constraints-before-generic-args-syntactic-pass.rs b/src/test/ui/parser/constraints-before-generic-args-syntactic-pass.rs index afbd13e6fd9..d8346653c25 100644 --- a/src/test/ui/parser/constraints-before-generic-args-syntactic-pass.rs +++ b/src/test/ui/parser/constraints-before-generic-args-syntactic-pass.rs @@ -3,7 +3,11 @@ #[cfg(FALSE)] fn syntax() { foo::<T = u8, T: Ord, String>(); + //~^ WARN associated type bounds are unstable + //~| WARN unstable syntax foo::<T = u8, 'a, T: Ord>(); + //~^ WARN associated type bounds are unstable + //~| WARN unstable syntax } fn main() {} diff --git a/src/test/ui/parser/constraints-before-generic-args-syntactic-pass.stderr b/src/test/ui/parser/constraints-before-generic-args-syntactic-pass.stderr new file mode 100644 index 00000000000..7e843c7f4d0 --- /dev/null +++ b/src/test/ui/parser/constraints-before-generic-args-syntactic-pass.stderr @@ -0,0 +1,24 @@ +warning: associated type bounds are unstable + --> $DIR/constraints-before-generic-args-syntactic-pass.rs:5:19 + | +LL | foo::<T = u8, T: Ord, String>(); + | ^^^^^^ + | + = note: see issue #52662 <https://github.com/rust-lang/rust/issues/52662> for more information + = help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable + = warning: unstable syntax can change at any point in the future, causing a hard error! + = note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860> + +warning: associated type bounds are unstable + --> $DIR/constraints-before-generic-args-syntactic-pass.rs:8:23 + | +LL | foo::<T = u8, 'a, T: Ord>(); + | ^^^^^^ + | + = note: see issue #52662 <https://github.com/rust-lang/rust/issues/52662> for more information + = help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable + = warning: unstable syntax can change at any point in the future, causing a hard error! + = note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860> + +warning: 2 warnings emitted + |
