summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/issue-111749.rs
blob: 6c45e4e8cd719392fafd09b34dd25c5e6dba4e42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
macro_rules! cbor_map {
    ($key:expr) => {
        $key.signum();
    };
}

fn main() {
    cbor_map! { #[test(test)] 4};
    //~^ ERROR removing an expression is not supported in this position
    //~| ERROR attribute must be of the form `#[test]`
    //~| WARNING this was previously accepted by the compiler but is being phased out
}