summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/dont-suggest-deref-inside-macro-issue-58298.rs
blob: ef1c09d218058050b2ca72ece7c8412907009a60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn warn(_: &str) {}

macro_rules! intrinsic_match {
    ($intrinsic:expr) => {
        warn(format!("unsupported intrinsic {}", $intrinsic));
        //~^ ERROR mismatched types
    };
}

fn main() {
    intrinsic_match! {
        "abc"
    };
}