mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 13:13:40 +00:00
11 lines
377 B
Plaintext
11 lines
377 B
Plaintext
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 previous error
|
|
|