summaryrefslogtreecommitdiffstats
path: root/tests/ui/generic-const-items/feature-gate-generic_const_items.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/generic-const-items/feature-gate-generic_const_items.stderr')
-rw-r--r--tests/ui/generic-const-items/feature-gate-generic_const_items.stderr77
1 files changed, 77 insertions, 0 deletions
diff --git a/tests/ui/generic-const-items/feature-gate-generic_const_items.stderr b/tests/ui/generic-const-items/feature-gate-generic_const_items.stderr
new file mode 100644
index 000000000..a1fdf5f6e
--- /dev/null
+++ b/tests/ui/generic-const-items/feature-gate-generic_const_items.stderr
@@ -0,0 +1,77 @@
+error[E0658]: generic const items are experimental
+ --> $DIR/feature-gate-generic_const_items.rs:2:14
+ |
+LL | const ONE<T>: i32;
+ | ^^^
+ |
+ = note: see issue #113521 <https://github.com/rust-lang/rust/issues/113521> for more information
+ = help: add `#![feature(generic_const_items)]` to the crate attributes to enable
+
+error[E0658]: generic const items are experimental
+ --> $DIR/feature-gate-generic_const_items.rs:6:5
+ |
+LL | / where
+LL | | A: Copy;
+ | |_______________^
+ |
+ = note: see issue #113521 <https://github.com/rust-lang/rust/issues/113521> for more information
+ = help: add `#![feature(generic_const_items)]` to the crate attributes to enable
+
+error[E0658]: generic const items are experimental
+ --> $DIR/feature-gate-generic_const_items.rs:11:12
+ |
+LL | const CONST<T>: i32 = 0;
+ | ^^^
+ |
+ = note: see issue #113521 <https://github.com/rust-lang/rust/issues/113521> for more information
+ = help: add `#![feature(generic_const_items)]` to the crate attributes to enable
+
+error[E0658]: generic const items are experimental
+ --> $DIR/feature-gate-generic_const_items.rs:14:12
+ |
+LL | const EMPTY<>: i32 = 0;
+ | ^^
+ |
+ = note: see issue #113521 <https://github.com/rust-lang/rust/issues/113521> for more information
+ = help: add `#![feature(generic_const_items)]` to the crate attributes to enable
+
+error[E0658]: generic const items are experimental
+ --> $DIR/feature-gate-generic_const_items.rs:18:1
+ |
+LL | / where
+LL | | String: Clone;
+ | |_________________^
+ |
+ = note: see issue #113521 <https://github.com/rust-lang/rust/issues/113521> for more information
+ = help: add `#![feature(generic_const_items)]` to the crate attributes to enable
+
+error[E0658]: generic const items are experimental
+ --> $DIR/feature-gate-generic_const_items.rs:28:22
+ |
+LL | discard! { const FREE<T>: () = (); }
+ | ^^^
+ |
+ = note: see issue #113521 <https://github.com/rust-lang/rust/issues/113521> for more information
+ = help: add `#![feature(generic_const_items)]` to the crate attributes to enable
+
+error[E0658]: generic const items are experimental
+ --> $DIR/feature-gate-generic_const_items.rs:31:33
+ |
+LL | discard! { impl () { const ASSOC<const N: ()>: () = (); } }
+ | ^^^^^^^^^^^^^
+ |
+ = note: see issue #113521 <https://github.com/rust-lang/rust/issues/113521> for more information
+ = help: add `#![feature(generic_const_items)]` to the crate attributes to enable
+
+error[E0658]: generic const items are experimental
+ --> $DIR/feature-gate-generic_const_items.rs:34:43
+ |
+LL | discard! { impl () { const ASSOC: i32 = 0 where String: Copy; } }
+ | ^^^^^^^^^^^^^^^^^^
+ |
+ = note: see issue #113521 <https://github.com/rust-lang/rust/issues/113521> for more information
+ = help: add `#![feature(generic_const_items)]` to the crate attributes to enable
+
+error: aborting due to 8 previous errors
+
+For more information about this error, try `rustc --explain E0658`.