mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
16 lines
271 B
Rust
16 lines
271 B
Rust
macro_rules! m1 {
|
|
($abi: literal) => { extern $abi } //~ ERROR expected expression, found keyword `extern`
|
|
}
|
|
|
|
macro_rules! m2 {
|
|
($abi: expr) => { extern $abi } //~ ERROR expected expression, found keyword `extern`
|
|
}
|
|
|
|
fn main() {
|
|
m1!(-2)
|
|
}
|
|
|
|
fn f() {
|
|
m2!(-2)
|
|
}
|