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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
178 B
Rust
Raw Normal View History

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