2021-07-01 18:02:11 -05:00
|
|
|
error[E0308]: method not compatible with trait
|
|
|
|
--> $DIR/issue-83765.rs:30:5
|
|
|
|
|
|
|
|
|
LL | fn size(&self) -> [usize; DIM] {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Self::DIM`, found `DIM`
|
|
|
|
|
|
2022-08-11 21:00:37 -05:00
|
|
|
= note: expected constant `Self::DIM`
|
|
|
|
found constant `DIM`
|
2021-07-01 18:02:11 -05:00
|
|
|
|
|
|
|
error: unconstrained generic constant
|
|
|
|
--> $DIR/issue-83765.rs:32:24
|
|
|
|
|
|
|
|
|
LL | self.reference.size()
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
= help: try adding a `where` bound using this expression: `where [(); Self::DIM]:`
|
2021-10-05 18:04:09 -05:00
|
|
|
note: required by a bound in `TensorSize::size`
|
|
|
|
--> $DIR/issue-83765.rs:9:31
|
|
|
|
|
|
|
|
|
LL | fn size(&self) -> [usize; Self::DIM];
|
|
|
|
| ^^^^^^^^^ required by this bound in `TensorSize::size`
|
2021-07-01 18:02:11 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/issue-83765.rs:32:9
|
|
|
|
|
|
|
|
|
LL | self.reference.size()
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ expected `DIM`, found `Self::DIM`
|
|
|
|
|
|
2022-08-11 21:00:37 -05:00
|
|
|
= note: expected constant `DIM`
|
|
|
|
found constant `Self::DIM`
|
2021-07-01 18:02:11 -05:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|