rust/tests/ui/suggestions/dont-suggest-deref-inside-macro-issue-58298.rs

15 lines
246 B
Rust
Raw Normal View History

2019-03-27 19:05:35 -05:00
fn warn(_: &str) {}
macro_rules! intrinsic_match {
($intrinsic:expr) => {
warn(format!("unsupported intrinsic {}", $intrinsic));
//~^ ERROR mismatched types
2019-03-27 19:05:35 -05:00
};
}
fn main() {
intrinsic_match! {
"abc"
};
}