about summary refs log tree commit diff
path: root/tests/ui/rfc-2632-const-trait-impl/issue-90052.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/rfc-2632-const-trait-impl/issue-90052.stderr')
-rw-r--r--tests/ui/rfc-2632-const-trait-impl/issue-90052.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/rfc-2632-const-trait-impl/issue-90052.stderr b/tests/ui/rfc-2632-const-trait-impl/issue-90052.stderr
new file mode 100644
index 00000000000..b2a9365378b
--- /dev/null
+++ b/tests/ui/rfc-2632-const-trait-impl/issue-90052.stderr
@@ -0,0 +1,14 @@
+error: `~const` is not allowed here
+  --> $DIR/issue-90052.rs:6:22
+   |
+LL | fn foo<T>() where T: ~const Bar {}
+   |                      ^^^^^^^^^^
+   |
+note: this function is not `const`, so it cannot have `~const` trait bounds
+  --> $DIR/issue-90052.rs:6:4
+   |
+LL | fn foo<T>() where T: ~const Bar {}
+   |    ^^^
+
+error: aborting due to previous error
+