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

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

14 lines
548 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
|
LL | type Type = [u8; std::mem::size_of::<<T as Trait>::Type>()] where [(); std::mem::size_of::<<T as Trait>::Type>()]:;
| ++++++++++++++++++++++++++++++++++++++++++++++++++++++
2021-04-23 22:12:21 +00:00
error: aborting due to 1 previous error
2021-04-23 22:12:21 +00:00