rust/tests/ui/const-generics/sneaky-array-repeat-expr.stderr

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

35 lines
1.1 KiB
Plaintext
Raw Normal View History

2021-09-02 15:20:51 -05:00
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
2023-05-02 12:04:52 -05:00
--> $DIR/sneaky-array-repeat-expr.rs:11:15
|
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:26:21
2021-09-02 15:20:51 -05:00
|
LL | let bar2 = [(); <()>::Assoc2];
| ^^^^^^^^^^^^
|
= note: this may fail depending on what value the parameter takes
2023-05-02 12:04:52 -05:00
error: constant expression depends on a generic parameter
--> $DIR/sneaky-array-repeat-expr.rs:26:16
|
LL | let bar2 = [(); <()>::Assoc2];
| ^^^^^^^^^^^^^^^^^^
|
= note: this may fail depending on what value the parameter takes
error: aborting due to 4 previous errors
2021-09-02 15:20:51 -05:00