rust/src/test/ui/const-generics/sneaky-array-repeat-expr.stderr
2021-09-02 21:22:13 +01:00

19 lines
560 B
Plaintext

error: constant expression depends on a generic parameter
--> $DIR/sneaky-array-repeat-expr.rs:11:20
|
LL | let bar = [(); <()>::Assoc];
| ^^^^^^^^^^^
|
= note: this may fail depending on what value the parameter takes
error: constant expression depends on a generic parameter
--> $DIR/sneaky-array-repeat-expr.rs:25:21
|
LL | let bar2 = [(); <()>::Assoc2];
| ^^^^^^^^^^^^
|
= note: this may fail depending on what value the parameter takes
error: aborting due to 2 previous errors