summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/feature-gate-associated_type_bounds.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
commit64d98f8ee037282c35007b64c2649055c56af1db (patch)
tree5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /tests/ui/feature-gates/feature-gate-associated_type_bounds.stderr
parentAdding debian version 1.67.1+dfsg1-1. (diff)
downloadrustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz
rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/feature-gates/feature-gate-associated_type_bounds.stderr')
-rw-r--r--tests/ui/feature-gates/feature-gate-associated_type_bounds.stderr150
1 files changed, 150 insertions, 0 deletions
diff --git a/tests/ui/feature-gates/feature-gate-associated_type_bounds.stderr b/tests/ui/feature-gates/feature-gate-associated_type_bounds.stderr
new file mode 100644
index 000000000..5be1d97a0
--- /dev/null
+++ b/tests/ui/feature-gates/feature-gate-associated_type_bounds.stderr
@@ -0,0 +1,150 @@
+error[E0658]: associated type bounds are unstable
+ --> $DIR/feature-gate-associated_type_bounds.rs:15:22
+ |
+LL | type A: Iterator<Item: Copy>;
+ | ^^^^^^^^^^
+ |
+ = 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
+
+error[E0658]: associated type bounds are unstable
+ --> $DIR/feature-gate-associated_type_bounds.rs:19:22
+ |
+LL | type B: Iterator<Item: 'static>;
+ | ^^^^^^^^^^^^^
+ |
+ = 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
+
+error[E0658]: associated type bounds are unstable
+ --> $DIR/feature-gate-associated_type_bounds.rs:23:20
+ |
+LL | struct _St1<T: Tr1<As1: Tr2>> {
+ | ^^^^^^^^
+ |
+ = 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
+
+error[E0658]: associated type bounds are unstable
+ --> $DIR/feature-gate-associated_type_bounds.rs:30:18
+ |
+LL | enum _En1<T: Tr1<As1: Tr2>> {
+ | ^^^^^^^^
+ |
+ = 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
+
+error[E0658]: associated type bounds are unstable
+ --> $DIR/feature-gate-associated_type_bounds.rs:37:19
+ |
+LL | union _Un1<T: Tr1<As1: Tr2>> {
+ | ^^^^^^^^
+ |
+ = 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
+
+error[E0658]: associated type bounds are unstable
+ --> $DIR/feature-gate-associated_type_bounds.rs:44:37
+ |
+LL | type _TaWhere1<T> where T: Iterator<Item: Copy> = T;
+ | ^^^^^^^^^^
+ |
+ = 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
+
+error[E0658]: associated type bounds are unstable
+ --> $DIR/feature-gate-associated_type_bounds.rs:47:22
+ |
+LL | fn _apit(_: impl Tr1<As1: Copy>) {}
+ | ^^^^^^^^^
+ |
+ = 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
+
+error[E0658]: associated type bounds are unstable
+ --> $DIR/feature-gate-associated_type_bounds.rs:49:26
+ |
+LL | fn _apit_dyn(_: &dyn Tr1<As1: Copy>) {}
+ | ^^^^^^^^^
+ |
+ = 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
+
+error[E0658]: associated type bounds are unstable
+ --> $DIR/feature-gate-associated_type_bounds.rs:52:24
+ |
+LL | fn _rpit() -> impl Tr1<As1: Copy> { S1 }
+ | ^^^^^^^^^
+ |
+ = 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
+
+error[E0658]: associated type bounds are unstable
+ --> $DIR/feature-gate-associated_type_bounds.rs:55:31
+ |
+LL | fn _rpit_dyn() -> Box<dyn Tr1<As1: Copy>> { Box::new(S1) }
+ | ^^^^^^^^^
+ |
+ = 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
+
+error[E0658]: associated type bounds are unstable
+ --> $DIR/feature-gate-associated_type_bounds.rs:58:23
+ |
+LL | const _cdef: impl Tr1<As1: Copy> = S1;
+ | ^^^^^^^^^
+ |
+ = 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
+
+error[E0658]: associated type bounds are unstable
+ --> $DIR/feature-gate-associated_type_bounds.rs:64:24
+ |
+LL | static _sdef: impl Tr1<As1: Copy> = S1;
+ | ^^^^^^^^^
+ |
+ = 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
+
+error[E0658]: associated type bounds are unstable
+ --> $DIR/feature-gate-associated_type_bounds.rs:71:21
+ |
+LL | let _: impl Tr1<As1: Copy> = S1;
+ | ^^^^^^^^^
+ |
+ = 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
+
+error[E0562]: `impl Trait` only allowed in function and inherent method return types, not in type
+ --> $DIR/feature-gate-associated_type_bounds.rs:58:14
+ |
+LL | const _cdef: impl Tr1<As1: Copy> = S1;
+ | ^^^^^^^^^^^^^^^^^^^
+
+error[E0562]: `impl Trait` only allowed in function and inherent method return types, not in type
+ --> $DIR/feature-gate-associated_type_bounds.rs:64:15
+ |
+LL | static _sdef: impl Tr1<As1: Copy> = S1;
+ | ^^^^^^^^^^^^^^^^^^^
+
+error[E0562]: `impl Trait` only allowed in function and inherent method return types, not in variable binding
+ --> $DIR/feature-gate-associated_type_bounds.rs:71:12
+ |
+LL | let _: impl Tr1<As1: Copy> = S1;
+ | ^^^^^^^^^^^^^^^^^^^
+
+error[E0277]: the trait bound `<<Self as _Tr3>::A as Iterator>::Item: Copy` is not satisfied
+ --> $DIR/feature-gate-associated_type_bounds.rs:15:28
+ |
+LL | type A: Iterator<Item: Copy>;
+ | ^^^^ the trait `Copy` is not implemented for `<<Self as _Tr3>::A as Iterator>::Item`
+ |
+help: consider further restricting the associated type
+ |
+LL | trait _Tr3 where <<Self as _Tr3>::A as Iterator>::Item: Copy {
+ | +++++++++++++++++++++++++++++++++++++++++++++++++
+
+error: aborting due to 17 previous errors
+
+Some errors have detailed explanations: E0277, E0562, E0658.
+For more information about an error, try `rustc --explain E0277`.