summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/issue-75801.rs
blob: b07cde0fabd74bbdc72a039277b74e477e6bb9b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// aux-build: issue-75801.rs

// Regression test for #75801.

#[macro_use]
extern crate issue_75801;

macro_rules! foo {
    ($arg:expr) => {
        #[foo]
        fn bar() {
            let _bar: u32 = $arg;
        }
    };
}

foo!("baz"); //~ ERROR: mismatched types [E0308]

fn main() {}