about summary refs log tree commit diff
path: root/tests/ui/proc-macro/attributes-on-modules.rs
blob: f1be7e44a4794f8639966b17e866041a77e1f1fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//@ check-pass
//@ proc-macro: 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;
}