2025-08-10 21:52:23 +00:00
|
|
|
//@ proc-macro: match-expander.rs
|
2025-09-26 13:59:06 +02:00
|
|
|
//@ ignore-backends: gcc
|
2025-08-10 21:52:23 +00:00
|
|
|
// 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!
|
|
|
|
|
}
|