summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/type_mismatch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/const-generics/type_mismatch.rs')
-rw-r--r--tests/ui/const-generics/type_mismatch.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/const-generics/type_mismatch.rs b/tests/ui/const-generics/type_mismatch.rs
index 4a7534e37..daa13277b 100644
--- a/tests/ui/const-generics/type_mismatch.rs
+++ b/tests/ui/const-generics/type_mismatch.rs
@@ -1,5 +1,6 @@
fn foo<const N: usize>() -> [u8; N] {
bar::<N>() //~ ERROR mismatched types
+ //~^ ERROR the constant `N` is not of type `u8`
}
fn bar<const N: u8>() -> [u8; N] {}