summaryrefslogtreecommitdiffstats
path: root/src/test/ui/modules/path-macro.rs
blob: ce2d1e2da2659fe921c31cdf71f4e4960b1cb3b3 (plain)
1
2
3
4
5
6
7
8
macro_rules! foo {
    () => {"bar.rs"};
}

#[path = foo!()] //~ ERROR malformed `path` attribute
mod abc;

fn main() {}