rust/tests/ui/const-generics/sneaky-array-repeat-expr.stderr
2023-01-11 09:32:08 +00: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