2021-05-19 21:23:32 +02:00
|
|
|
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`
|
2021-05-19 21:23:32 +02:00
|
|
|
|
2021-08-27 18:04:57 +02:00
|
|
|
error: unconstrained generic constant
|
2020-11-17 11:44:21 +01:00
|
|
|
--> $DIR/issue-62504.rs:18:25
|
2020-03-27 01:46:24 +02:00
|
|
|
|
|
|
|
|
LL | ArrayHolder([0; Self::SIZE])
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2021-08-27 18:04:57 +02:00
|
|
|
= help: try adding a `where` bound using this expression: `where [(); Self::SIZE]:`
|
2020-03-27 01:46:24 +02:00
|
|
|
|
2021-05-19 21:23:32 +02:00
|
|
|
error: aborting due to 2 previous errors
|
2020-03-13 09:03:58 +09:00
|
|
|
|
2021-05-19 21:23:32 +02:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|