mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
13 lines
339 B
Rust
13 lines
339 B
Rust
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
|
|
}
|