blob: 1ebadae00ff05ef46e859d40e1a50b80e1da6105 [file] [edit]
// direct_const_arg! is a built-in macro relevant to min_generic_const_args; its contents should be
// formatted as if its contents were passed through unchanged (the macro changes the semantics of
// the contained expression, the syntax is unchanged)
#![feature(min_generic_const_args)]
trait Trait {
type const TYPE_CONST: usize;
}
struct S<const N: usize>;
fn parsed_as_expr_kind<T: Trait>(_: S<{ core::direct_const_arg!(T::TYPE_CONST) }>) {}
fn parsed_as_ty_kind<T: Trait>(_: S<core::direct_const_arg!(T::TYPE_CONST)>) {}