mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
13 lines
345 B
Rust
13 lines
345 B
Rust
//@ proc-macro: match-expander.rs
|
|
// 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!
|
|
}
|