]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/sneaky-array-repeat-expr.stderr
Rollup merge of #103236 - tspiteri:redoc-int-adc-sbb, r=m-ou-se
[rust.git] / tests / 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