macro_rules! foo {
($foo:ident) => {
mod y {
struct $foo;
}
};
}
fn main() {
foo!(Foo);
mod module {
// FIXME: IDE layer has this unresolved
foo!(Bar);
fn func() {
mod inner {
struct Innerest<const C: usize> { field: [(); {C}] }
}
}
}
}