summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui-toml/disallowed_macros/auxiliary/macros.rs
blob: fcaeace0e98904882b03e51895bbc5d7fea96155 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#[macro_export]
macro_rules! expr {
    () => {
        1
    };
}

#[macro_export]
macro_rules! stmt {
    () => {
        let _x = ();
    };
}

#[macro_export]
macro_rules! ty {
    () => { &'static str };
}

#[macro_export]
macro_rules! pat {
    () => {
        _
    };
}

#[macro_export]
macro_rules! item {
    () => {
        const ITEM: usize = 1;
    };
}