about summary refs log tree commit diff
path: root/tests/ui/const-generics/unify_with_nested_expr.stderr
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2024-06-19 08:25:58 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2024-06-19 14:58:29 +0000
commite4c9a8cf9b2e2a17c589dadcaffae0b9e6b62cbc (patch)
treef8ca00ac21fad58ca146ade0801f2e42596b6baa /tests/ui/const-generics/unify_with_nested_expr.stderr
parent1cb75dc4a92ef131b2b88bd9faeaa1d39c3d5f4e (diff)
downloadrust-e4c9a8cf9b2e2a17c589dadcaffae0b9e6b62cbc.tar.gz
rust-e4c9a8cf9b2e2a17c589dadcaffae0b9e6b62cbc.zip
Const generic parameters aren't bounds, even if we end up erroring because of the bound that binds the parameter's type
Diffstat (limited to 'tests/ui/const-generics/unify_with_nested_expr.stderr')
-rw-r--r--tests/ui/const-generics/unify_with_nested_expr.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/const-generics/unify_with_nested_expr.stderr b/tests/ui/const-generics/unify_with_nested_expr.stderr
index 87610db67ae..b1aecdb3cb5 100644
--- a/tests/ui/const-generics/unify_with_nested_expr.stderr
+++ b/tests/ui/const-generics/unify_with_nested_expr.stderr
@@ -4,11 +4,11 @@ error[E0284]: type annotations needed
 LL |     bar();
    |     ^^^ cannot infer the value of the const parameter `N` declared on the function `bar`
    |
-note: required by a bound in `bar`
+note: required by a const generic parameter in `bar`
   --> $DIR/unify_with_nested_expr.rs:12:8
    |
 LL | fn bar<const N: usize>()
-   |        ^^^^^^^^^^^^^^ required by this bound in `bar`
+   |        ^^^^^^^^^^^^^^ required by this const generic parameter in `bar`
 help: consider specifying the generic argument
    |
 LL |     bar::<N>();