about summary refs log tree commit diff
path: root/tests/ui/proc-macro/match-expander.rs
blob: b7245c7e682c17bf1269bf3087652771a8212ae6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ proc-macro: match-expander.rs
//@ ignore-backends: gcc
// Ensure that we don't point at macro invocation when providing inference contexts.

#[macro_use]
extern crate match_expander;

fn main() {
    match_expander::matcher!();
    //~^ ERROR: mismatched types
    //~| NOTE: expected `S`, found `bool`
    //~| NOTE: in this expansion of match_expander::matcher!
}