]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cfg/cfg-method-receiver.rs
Rollup merge of #101388 - compiler-errors:issue-101376, r=fee1-dead
[rust.git] / src / test / ui / cfg / cfg-method-receiver.rs
1 macro_rules! cbor_map {
2     ($key:expr) => {
3         $key.signum();
4         //~^ ERROR can't call method `signum` on ambiguous numeric type `{integer}` [E0689]
5     };
6 }
7
8 fn main() {
9     cbor_map! { #[cfg(test)] 4};
10     //~^ ERROR attributes on expressions are experimental
11     //~| ERROR removing an expression is not supported in this position
12 }