Files
rust/tests/ui/const-generics/generic-parameter-in-const-expression-39211.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
581 B
Plaintext
Raw Permalink Normal View History

error: constant expression depends on a generic parameter
2025-07-13 15:56:27 -04:00
--> $DIR/generic-parameter-in-const-expression-39211.rs:9:17
2018-07-15 14:11:54 -07:00
|
2019-03-09 15:03:44 +03:00
LL | let a = [3; M::Row::DIM];
| ^^^^^^^^^^^
|
= note: this may fail depending on what value the parameter takes
2018-07-15 14:11:54 -07:00
error: constant expression depends on a generic parameter
2025-07-13 15:56:27 -04:00
--> $DIR/generic-parameter-in-const-expression-39211.rs:9:13
|
LL | let a = [3; M::Row::DIM];
| ^^^^^^^^^^^^^^^^
|
= note: this may fail depending on what value the parameter takes
error: aborting due to 2 previous errors
2018-07-15 14:11:54 -07:00