rust/tests/ui/const-generics/issues/issue-67739.full.stderr

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

14 lines
456 B
Plaintext
Raw Normal View History

error: unconstrained generic constant
2020-11-17 11:44:21 +01:00
--> $DIR/issue-67739.rs:11:15
|
LL | [0u8; mem::size_of::<Self::Associated>()];
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: try adding a `where` bound
|
LL | fn associated_size(&self) -> usize where [(); mem::size_of::<Self::Associated>()]: {
| +++++++++++++++++++++++++++++++++++++++++++++++
error: aborting due to 1 previous error