rust/tests/ui/associated-consts/associated-const-type-param...

11 lines
322 B
Plaintext

error: constant expression depends on a generic parameter
--> $DIR/associated-const-type-parameter-arrays-2.rs:16:22
|
LL | let _array = [4; <A as Foo>::Y];
| ^^^^^^^^^^^^^
|
= note: this may fail depending on what value the parameter takes
error: aborting due to 1 previous error