summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-type-bounds/consts.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/associated-type-bounds/consts.stderr')
-rw-r--r--tests/ui/associated-type-bounds/consts.stderr10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/associated-type-bounds/consts.stderr b/tests/ui/associated-type-bounds/consts.stderr
new file mode 100644
index 000000000..ddfb6612b
--- /dev/null
+++ b/tests/ui/associated-type-bounds/consts.stderr
@@ -0,0 +1,10 @@
+error: expected associated type, found associated constant
+ --> $DIR/consts.rs:3:29
+ |
+LL | pub fn accept(_: impl Trait<K: Copy>) {}
+ | ^
+ |
+ = note: trait bounds not allowed on associated constant
+
+error: aborting due to previous error
+