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