blob: 8b9c228c1ee53b6cd64551ba5d7c858363241a91 [file] [log] [blame] [edit]
error: complex const arguments must be placed inside of a `const` block
--> $DIR/adt_expr_arg_simple.rs:29:30
|
LL | foo::<{ Some::<u32> { 0: N + 1 } }>();
| ^^^^^
error: generic parameters may not be used in const operations
--> $DIR/adt_expr_arg_simple.rs:34:38
|
LL | foo::<{ Some::<u32> { 0: const { N + 1 } } }>();
| ^
error: aborting due to 2 previous errors