aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-3661.rs
blob: 8d03c3630d56ea7f20725a2b98a97dfb3c005e2a (plain)
1
2
3
4
5
6
7
8
9
10
pub macro m($inner_str:expr) {
    #[m = $inner_str] 
    // { dg-error "macro not found" "" { target *-*-* } .-1 }

    struct S;
}

fn main() {
    m!(stringify!(foo));
}