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
379 B
Plaintext
Raw Normal View History

2021-04-23 22:12:21 +00:00
error: unconstrained generic constant
--> $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-04-23 22:12:21 +00:00
|
= 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
2021-04-23 22:12:21 +00:00