summaryrefslogtreecommitdiffstats
path: root/tests/ui/cfg/cfg-method-receiver.rs
blob: 71134ff17b5278def8fac46312b82f0a176f833f (plain)
1
2
3
4
5
6
7
8
9
10
11
macro_rules! cbor_map {
    ($key:expr) => {
        $key.signum();
        //~^ ERROR can't call method `signum` on ambiguous numeric type `{integer}` [E0689]
    };
}

fn main() {
    cbor_map! { #[cfg(test)] 4};
    //~^ ERROR removing an expression is not supported in this position
}