2021-04-23 22:12:21 +00:00
|
|
|
error: unconstrained generic constant
|
2021-08-27 16:04:57 +00:00
|
|
|
--> $DIR/issue-51892.rs:14:17
|
2021-04-23 22:12:21 +00:00
|
|
|
|
|
|
|
|
LL | type Type = [u8; std::mem::size_of::<<T as Trait>::Type>()];
|
2021-08-06 15:46:20 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-04-23 22:12:21 +00:00
|
|
|
|
|
2024-03-21 00:03:59 +00:00
|
|
|
help: try adding a `where` bound
|
|
|
|
|
|
|
|
|
LL | type Type = [u8; std::mem::size_of::<<T as Trait>::Type>()] where [(); std::mem::size_of::<<T as Trait>::Type>()]:;
|
|
|
|
| ++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
2021-04-23 22:12:21 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2021-04-23 22:12:21 +00:00
|
|
|
|