blob: f1d5e5c674756582fdd99451ce78d4d5ed06ec7b [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 } } }>();
| ^
|
= help: add `#![feature(opaque_generic_const_args)]` to allow generic expressions as the RHS of const items
error: aborting due to 2 previous errors