2021-08-27 18:04:57 +02:00
|
|
|
error: unconstrained generic constant
|
2020-11-17 11:44:21 +01:00
|
|
|
--> $DIR/issue-67739.rs:11:15
|
2020-03-27 01:46:24 +02:00
|
|
|
|
|
|
|
|
LL | [0u8; mem::size_of::<Self::Associated>()];
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2024-03-21 00:03:59 +00:00
|
|
|
help: try adding a `where` bound
|
|
|
|
|
|
|
|
|
LL | fn associated_size(&self) -> usize where [(); mem::size_of::<Self::Associated>()]: {
|
|
|
|
| +++++++++++++++++++++++++++++++++++++++++++++++
|
2020-03-27 01:46:24 +02:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2020-03-27 01:46:24 +02:00
|
|
|
|