mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
15 lines
246 B
Rust
15 lines
246 B
Rust
fn warn(_: &str) {}
|
|
|
|
macro_rules! intrinsic_match {
|
|
($intrinsic:expr) => {
|
|
warn(format!("unsupported intrinsic {}", $intrinsic));
|
|
//~^ ERROR mismatched types
|
|
};
|
|
}
|
|
|
|
fn main() {
|
|
intrinsic_match! {
|
|
"abc"
|
|
};
|
|
}
|