mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
10 lines
379 B
Text
10 lines
379 B
Text
error: unconstrained generic constant
|
|
--> $DIR/issue-51892.rs:14:17
|
|
|
|
|
LL | type Type = [u8; std::mem::size_of::<<T as Trait>::Type>()];
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: try adding a `where` bound using this expression: `where [(); std::mem::size_of::<<T as Trait>::Type>()]:`
|
|
|
|
error: aborting due to 1 previous error
|
|
|