about summary refs log tree commit diff
path: root/tests/ui/const-generics/infer/cannot-infer-const-args.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/infer/cannot-infer-const-args.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/infer/cannot-infer-const-args.stderr')
-rw-r--r--tests/ui/const-generics/infer/cannot-infer-const-args.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/const-generics/infer/cannot-infer-const-args.stderr b/tests/ui/const-generics/infer/cannot-infer-const-args.stderr
index 2180ba2f809..c349a50a83f 100644
--- a/tests/ui/const-generics/infer/cannot-infer-const-args.stderr
+++ b/tests/ui/const-generics/infer/cannot-infer-const-args.stderr
@@ -4,11 +4,11 @@ error[E0284]: type annotations needed
 LL |     foo();
    |     ^^^ cannot infer the value of the const parameter `X` declared on the function `foo`
    |
-note: required by a bound in `foo`
+note: required by a const generic parameter in `foo`
   --> $DIR/cannot-infer-const-args.rs:1:8
    |
 LL | fn foo<const X: usize>() -> usize {
-   |        ^^^^^^^^^^^^^^ required by this bound in `foo`
+   |        ^^^^^^^^^^^^^^ required by this const generic parameter in `foo`
 help: consider specifying the generic argument
    |
 LL |     foo::<X>();