mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 05:57:03 +03:00
29 lines
1007 B
Plaintext
29 lines
1007 B
Plaintext
error: complex const arguments must be placed inside of a `const` block
|
|
--> $DIR/tuple_expr_arg_complex.rs:12:25
|
|
|
|
|
LL | takes_tuple::<{ (N, N + 1) }>();
|
|
| ^^^^^
|
|
|
|
error: complex const arguments must be placed inside of a `const` block
|
|
--> $DIR/tuple_expr_arg_complex.rs:13:25
|
|
|
|
|
LL | takes_tuple::<{ (N, T::ASSOC + 1) }>();
|
|
| ^^^^^^^^^^^^
|
|
|
|
error: complex const arguments must be placed inside of a `const` block
|
|
--> $DIR/tuple_expr_arg_complex.rs:15:36
|
|
|
|
|
LL | takes_nested_tuple::<{ (N, (N, N + 1)) }>();
|
|
| ^^^^^
|
|
|
|
error: generic parameters may not be used in const operations
|
|
--> $DIR/tuple_expr_arg_complex.rs:16:44
|
|
|
|
|
LL | takes_nested_tuple::<{ (N, (N, const { N + 1 })) }>();
|
|
| ^
|
|
|
|
|
= help: add `#![feature(generic_const_args)]` to allow generic expressions as the RHS of const items
|
|
|
|
error: aborting due to 4 previous errors
|
|
|