about summary refs log tree commit diff
path: root/tests/ui/issues
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/issues
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/issues')
-rw-r--r--tests/ui/issues/issue-98299.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/issues/issue-98299.stderr b/tests/ui/issues/issue-98299.stderr
index f4b40cbbd19..b645267e3b9 100644
--- a/tests/ui/issues/issue-98299.stderr
+++ b/tests/ui/issues/issue-98299.stderr
@@ -6,11 +6,11 @@ LL |     SmallCString::try_from(p).map(|cstr| cstr);
    |     |
    |     type must be known at this point
    |
-note: required by a bound in `SmallCString`
+note: required by a const generic parameter in `SmallCString`
   --> $DIR/issue-98299.rs:10:25
    |
 LL | pub struct SmallCString<const N: usize> {}
-   |                         ^^^^^^^^^^^^^^ required by this bound in `SmallCString`
+   |                         ^^^^^^^^^^^^^^ required by this const generic parameter in `SmallCString`
 help: consider giving this closure parameter an explicit type, where the value of const parameter `N` is specified
    |
 LL |     SmallCString::try_from(p).map(|cstr: SmallCString<N>| cstr);