mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
21 lines
615 B
Plaintext
21 lines
615 B
Plaintext
error: complex const arguments must be placed inside of a `const` block
|
|
--> $DIR/array-expr-complex.rs:8:28
|
|
|
|
|
LL | takes_array::<{ [1, 2, 1 + 2] }>();
|
|
| ^^^^^
|
|
|
|
error: complex const arguments must be placed inside of a `const` block
|
|
--> $DIR/array-expr-complex.rs:10:21
|
|
|
|
|
LL | takes_array::<{ [X; 3] }>();
|
|
| ^^^^^^
|
|
|
|
error: complex const arguments must be placed inside of a `const` block
|
|
--> $DIR/array-expr-complex.rs:12:21
|
|
|
|
|
LL | takes_array::<{ [0; Y] }>();
|
|
| ^^^^^^
|
|
|
|
error: aborting due to 3 previous errors
|
|
|