1 error[E0599]: no function or associated item named `dim` found for type `D` in the current scope
2 --> $DIR/issue-39559.rs:14:21
4 LL | entries: [T; D::dim()],
5 | ^^^ function or associated item not found in `D`
7 = help: items from traits can only be used if the type parameter is bounded by the trait
8 help: the following trait defines an item `dim`, perhaps you need to restrict type parameter `D` with it:
10 LL | pub struct Vector<T, D: Dim + Dim> {
13 error: aborting due to previous error
15 For more information about this error, try `rustc --explain E0599`.