]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/sneaky-array-repeat-expr.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / const-generics / sneaky-array-repeat-expr.stderr
1 error: constant expression depends on a generic parameter
2 --> $DIR/sneaky-array-repeat-expr.rs:11:20
3 |
4 LL | let bar = [(); <()>::Assoc];
5 | ^^^^^^^^^^^
6 |
7 = note: this may fail depending on what value the parameter takes
8
9 error: constant expression depends on a generic parameter
10 --> $DIR/sneaky-array-repeat-expr.rs:25:21
11 |
12 LL | let bar2 = [(); <()>::Assoc2];
13 | ^^^^^^^^^^^^
14 |
15 = note: this may fail depending on what value the parameter takes
16
17 error: aborting due to 2 previous errors
18