1 error[E0308]: method not compatible with trait
2 --> $DIR/issue-83765.rs:30:5
4 LL | fn size(&self) -> [usize; DIM] {
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Self::DIM`, found `DIM`
7 = note: expected constant `Self::DIM`
10 error: unconstrained generic constant
11 --> $DIR/issue-83765.rs:32:24
13 LL | self.reference.size()
16 = help: try adding a `where` bound using this expression: `where [(); Self::DIM]:`
17 note: required by a bound in `TensorSize::size`
18 --> $DIR/issue-83765.rs:9:31
20 LL | fn size(&self) -> [usize; Self::DIM];
21 | ^^^^^^^^^ required by this bound in `TensorSize::size`
23 error[E0308]: mismatched types
24 --> $DIR/issue-83765.rs:32:9
26 LL | self.reference.size()
27 | ^^^^^^^^^^^^^^^^^^^^^ expected `DIM`, found `Self::DIM`
29 = note: expected constant `DIM`
30 found constant `Self::DIM`
32 error: aborting due to 3 previous errors
34 For more information about this error, try `rustc --explain E0308`.