]>
Commit | Line | Data |
---|---|---|
29967ef6 XL |
1 | error[E0308]: mismatched types |
2 | --> $DIR/issue-62504.rs:19:21 | |
3 | | | |
4 | LL | ArrayHolder([0; Self::SIZE]) | |
5 | | ^^^^^^^^^^^^^^^ expected `X`, found `Self::SIZE` | |
6 | | | |
7 | = note: expected array `[u32; X]` | |
8 | found array `[u32; _]` | |
9 | ||
10 | error: constant expression depends on a generic parameter | |
1b1a35ee XL |
11 | --> $DIR/issue-62504.rs:19:25 |
12 | | | |
13 | LL | ArrayHolder([0; Self::SIZE]) | |
14 | | ^^^^^^^^^^ | |
15 | | | |
29967ef6 | 16 | = note: this may fail depending on what value the parameter takes |
1b1a35ee | 17 | |
29967ef6 | 18 | error: aborting due to 2 previous errors |
1b1a35ee | 19 | |
29967ef6 | 20 | For more information about this error, try `rustc --explain E0308`. |