mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
12 lines
235 B
Rust
12 lines
235 B
Rust
|
macro_rules! number {
|
||
|
(neg false, $self:ident) => { $self };
|
||
|
($signed:tt => $ty:ty;) => {
|
||
|
number!(neg $signed, $self);
|
||
|
//~^ ERROR no rules expected the token `$`
|
||
|
};
|
||
|
}
|
||
|
|
||
|
number! { false => u8; }
|
||
|
|
||
|
fn main() {}
|