rust/tests/ui/const-generics/early/trivial-const-arg-macro-braced-expansion.rs

15 lines
178 B
Rust

macro_rules! y {
() => {
N
};
}
struct A<const N: usize>;
fn foo<const N: usize>() -> A<{ y!() }> {
A::<1>
//~^ ERROR: mismatched types
}
fn main() {}