about summary refs log tree commit diff
path: root/tests/ui/associated-item/associated-item-duplicate-bounds.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/associated-item/associated-item-duplicate-bounds.stderr')
-rw-r--r--tests/ui/associated-item/associated-item-duplicate-bounds.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/associated-item/associated-item-duplicate-bounds.stderr b/tests/ui/associated-item/associated-item-duplicate-bounds.stderr
new file mode 100644
index 00000000000..f2e4ca524a4
--- /dev/null
+++ b/tests/ui/associated-item/associated-item-duplicate-bounds.stderr
@@ -0,0 +1,11 @@
+error: generic parameters may not be used in const operations
+  --> $DIR/associated-item-duplicate-bounds.rs:7:18
+   |
+LL |     links: [u32; A::LINKS], // Shouldn't suggest bounds already there.
+   |                  ^^^^^^^^ cannot perform const operation using `A`
+   |
+   = note: type parameters may not be used in const expressions
+   = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
+
+error: aborting due to previous error
+