]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/associated-const/associated-const-type-parameter-arrays.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / associated-const / associated-const-type-parameter-arrays.stderr
index 3d38deb5a87633dee8d38185fb878fd2cf401e45..ac40e390cfbbd50bce084ffe4a0422b1fda74bd2 100644 (file)
@@ -7,11 +7,10 @@ LL |     const Y: usize;
 LL |     let _array: [u32; <A as Foo>::Y];
    |                       ^^^^^^^^^^^^^ the trait `Foo` is not implemented for `A`
    |
-help: consider further restricting this bound with `+ Foo`
-  --> $DIR/associated-const-type-parameter-arrays.rs:15:16
+help: consider further restricting this bound
    |
-LL | pub fn test<A: Foo, B: Foo>() {
-   |                ^^^
+LL | pub fn test<A: Foo + Foo, B: Foo>() {
+   |                    ^^^^^
 
 error: aborting due to previous error