rust/tests/ui/cfg/cfg-method-receiver.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
289 B
Rust
Raw Normal View History

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
}