about summary refs log tree commit diff
path: root/tests/ui/rfc-2632-const-trait-impl/without-tilde.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/rfc-2632-const-trait-impl/without-tilde.stderr')
-rw-r--r--tests/ui/rfc-2632-const-trait-impl/without-tilde.stderr10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/rfc-2632-const-trait-impl/without-tilde.stderr b/tests/ui/rfc-2632-const-trait-impl/without-tilde.stderr
new file mode 100644
index 00000000000..31300354a57
--- /dev/null
+++ b/tests/ui/rfc-2632-const-trait-impl/without-tilde.stderr
@@ -0,0 +1,10 @@
+error: const bounds must start with `~`
+  --> $DIR/without-tilde.rs:5:13
+   |
+LL | struct S<T: const Tr>;
+   |             -^^^^
+   |             |
+   |             help: add `~`: `~`
+
+error: aborting due to previous error
+