rust/tests/ui/suggestions/dont-suggest-deref-inside-macro-issue-58298.rs
2023-01-11 09:32:08 +00:00

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"
};
}