]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/issues/issue-62504.min.stderr
New upstream version 1.49.0~beta.4+dfsg1
[rustc.git] / src / test / ui / const-generics / issues / issue-62504.min.stderr
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
11 --> $DIR/issue-62504.rs:19:25
12 |
13 LL | ArrayHolder([0; Self::SIZE])
14 | ^^^^^^^^^^
15 |
16 = note: this may fail depending on what value the parameter takes
17
18 error: aborting due to 2 previous errors
19
20 For more information about this error, try `rustc --explain E0308`.