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