rust/tests/ui/const-generics/generic_const_exprs/issue-62504.full.stderr

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

21 lines
625 B
Plaintext
Raw Normal View History

error[E0308]: mismatched types
--> $DIR/issue-62504.rs:18:21
|
LL | ArrayHolder([0; Self::SIZE])
| ^^^^^^^^^^^^^^^ expected `X`, found `Self::SIZE`
|
2022-08-12 02:00:37 +00:00
= note: expected constant `X`
found constant `Self::SIZE`
error: unconstrained generic constant
2020-11-17 10:44:21 +00:00
--> $DIR/issue-62504.rs:18:25
|
LL | ArrayHolder([0; Self::SIZE])
| ^^^^^^^^^^
|
= help: try adding a `where` bound using this expression: `where [(); Self::SIZE]:`
error: aborting due to 2 previous errors
2020-03-13 00:03:58 +00:00
For more information about this error, try `rustc --explain E0308`.