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-24 06:12:21 +08:00
error: unconstrained generic constant
--> $DIR/issue-51892.rs:14:17
2021-04-24 06:12:21 +08:00
|
LL | type Type = [u8; std::mem::size_of::<<T as Trait>::Type>()];
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2021-04-24 06:12:21 +08: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