]> git.proxmox.com Git - rustc.git/blame - src/test/ui/const-generics/generic-sum-in-array-length.full.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / const-generics / generic-sum-in-array-length.full.stderr
CommitLineData
29967ef6 1error: constant expression depends on a generic parameter
5869c6ff 2 --> $DIR/generic-sum-in-array-length.rs:6:45
29967ef6
XL
3 |
4LL | fn foo<const A: usize, const B: usize>(bar: [usize; A + B]) {}
5 | ^^^^^^^^^^^^^^
6 |
7 = note: this may fail depending on what value the parameter takes
8
9error: aborting due to previous error
10