]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-39559.stderr
Unify output of "variant not found" errors
[rust.git] / src / test / ui / issues / issue-39559.stderr
index aded0c2de45e43b7a521aabf2b1a1523761e1fe2..0554b232c248b7f1189d4584c77cd0bc72db0c61 100644 (file)
@@ -1,12 +1,14 @@
-error[E0599]: no function or associated item named `dim` found for type `D` in the current scope
+error[E0599]: no function or associated item named `dim` found for type parameter `D` in the current scope
   --> $DIR/issue-39559.rs:14:21
    |
 LL |     entries: [T; D::dim()],
    |                     ^^^ function or associated item not found in `D`
    |
-   = help: items from traits can only be used if the trait is implemented and in scope
-   = note: the following trait defines an item `dim`, perhaps you need to implement it:
-           candidate #1: `Dim`
+   = help: items from traits can only be used if the type parameter is bounded by the trait
+help: the following trait defines an item `dim`, perhaps you need to restrict type parameter `D` with it:
+   |
+LL | pub struct Vector<T, D: Dim + Dim> {
+   |                      ^^^^^^^^
 
 error: aborting due to previous error