about summary refs log tree commit diff
path: root/tests/ui/traits
diff options
context:
space:
mode:
authorBarrett Ray <onkoe@protonmail.com>2024-09-29 15:28:11 -0500
committerBarrett Ray <onkoe@protonmail.com>2024-09-29 23:40:43 -0500
commitc5598d6a9e0e8a46775f2c69e1278efee8223425 (patch)
tree4c34fc38a8e1a4f703d2077697d2f15df7174742 /tests/ui/traits
parent42ff2eedb0585e32e3e8da0e83ff82dd49987a2c (diff)
downloadrust-c5598d6a9e0e8a46775f2c69e1278efee8223425.tar.gz
rust-c5598d6a9e0e8a46775f2c69e1278efee8223425.zip
fix(hir_analysis/wfcheck): don't leak {type error}
avoid `{type error}` being leaked in user-facing messages,
particularly when using the `adt_const_params` feature
Diffstat (limited to 'tests/ui/traits')
-rw-r--r--tests/ui/traits/next-solver/canonical/const-region-infer-to-static-in-binder.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/traits/next-solver/canonical/const-region-infer-to-static-in-binder.stderr b/tests/ui/traits/next-solver/canonical/const-region-infer-to-static-in-binder.stderr
index e0cbee88aa1..377dfc8b529 100644
--- a/tests/ui/traits/next-solver/canonical/const-region-infer-to-static-in-binder.stderr
+++ b/tests/ui/traits/next-solver/canonical/const-region-infer-to-static-in-binder.stderr
@@ -10,7 +10,7 @@ error: using function pointers as const generic parameters is forbidden
 LL | struct X<const FN: fn() = { || {} }>;
    |                    ^^^^
    |
-   = note: the only supported types are integers, `bool` and `char`
+   = note: the only supported types are integers, `bool`, and `char`
 
 error: using function pointers as const generic parameters is forbidden
   --> $DIR/const-region-infer-to-static-in-binder.rs:4:20
@@ -18,7 +18,7 @@ error: using function pointers as const generic parameters is forbidden
 LL | struct X<const FN: fn() = { || {} }>;
    |                    ^^^^
    |
-   = note: the only supported types are integers, `bool` and `char`
+   = note: the only supported types are integers, `bool`, and `char`
    = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
 
 error: aborting due to 3 previous errors