about summary refs log tree commit diff
path: root/tests/ui/const-generics/issues/issue-68615-array.min.stderr
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-09-30 18:25:14 +0200
committerGitHub <noreply@github.com>2024-09-30 18:25:14 +0200
commit5df1123b39ccacfa95bdaf83b5a1e231aec85da4 (patch)
tree10ca9d06cdd4d71b0af21b518b704b30173c2e3e /tests/ui/const-generics/issues/issue-68615-array.min.stderr
parentdc1ccc526435c55c28664576270ab558ac86e506 (diff)
parentc5598d6a9e0e8a46775f2c69e1278efee8223425 (diff)
downloadrust-5df1123b39ccacfa95bdaf83b5a1e231aec85da4.tar.gz
rust-5df1123b39ccacfa95bdaf83b5a1e231aec85da4.zip
Rollup merge of #131038 - onkoe:fix/adt_const_params_leak_118179, r=compiler-errors
Fix `adt_const_params` leaking `{type error}` in error msg

Fixes the confusing diagnostic described in #118179. (users would see `{type error}` in some situations, which is pretty weird)

`adt_const_params` tracking issue: #95174
Diffstat (limited to 'tests/ui/const-generics/issues/issue-68615-array.min.stderr')
-rw-r--r--tests/ui/const-generics/issues/issue-68615-array.min.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/const-generics/issues/issue-68615-array.min.stderr b/tests/ui/const-generics/issues/issue-68615-array.min.stderr
index 6d18f8195d2..60cbc9b4eab 100644
--- a/tests/ui/const-generics/issues/issue-68615-array.min.stderr
+++ b/tests/ui/const-generics/issues/issue-68615-array.min.stderr
@@ -4,7 +4,7 @@ error: `[usize; 0]` is forbidden as the type of a const generic parameter
 LL | struct Foo<const V: [usize; 0] > {}
    |                     ^^^^^^^^^^
    |
-   = note: the only supported types are integers, `bool` and `char`
+   = note: the only supported types are integers, `bool`, and `char`
 help: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types
    |
 LL + #![feature(adt_const_params)]