summaryrefslogtreecommitdiffstats
path: root/src/test/ui/proc-macro/attributes-on-modules.rs
blob: 6c73b0bf19c7f845391a47e2b9d6ab29619e0cda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// check-pass
// aux-build:test-macros.rs

#[macro_use]
extern crate test_macros;

#[identity_attr]
mod m {
    pub struct S;
}

#[identity_attr]
fn f() {
    mod m {}
}

fn main() {
    let s = m::S;
}