rust/tests/ui/specialization/issue-51892.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
377 B
Plaintext
Raw Normal View History

2021-04-23 17:12:21 -05:00
error: unconstrained generic constant
--> $DIR/issue-51892.rs:14:17
2021-04-23 17:12:21 -05:00
|
LL | type Type = [u8; std::mem::size_of::<<T as Trait>::Type>()];
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2021-04-23 17:12:21 -05:00
|
= help: try adding a `where` bound using this expression: `where [(); std::mem::size_of::<<T as Trait>::Type>()]:`
error: aborting due to previous error