blob: ab394c21b8b32aee76a1ecde45c3618360a151a0 [file]
// gca! 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)]
use std::gca;
trait Trait {
#[rustc_always_gca]
const TYPE_CONST: usize;
}
struct S<const N: usize>;
fn parsed_as_expr_kind<T: Trait>(_: S<{ gca!( T :: TYPE_CONST ) }>) {}
fn parsed_as_ty_kind<T: Trait>(_: S< gca!( T :: TYPE_CONST ) >) {}