summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/bad-subst-const-kind.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/const-generics/bad-subst-const-kind.stderr')
-rw-r--r--tests/ui/const-generics/bad-subst-const-kind.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/const-generics/bad-subst-const-kind.stderr b/tests/ui/const-generics/bad-subst-const-kind.stderr
new file mode 100644
index 000000000..bd24f9140
--- /dev/null
+++ b/tests/ui/const-generics/bad-subst-const-kind.stderr
@@ -0,0 +1,9 @@
+error[E0308]: mismatched types
+ --> $DIR/bad-subst-const-kind.rs:8:31
+ |
+LL | impl<const N: u64> Q for [u8; N] {
+ | ^ expected `usize`, found `u64`
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0308`.