rust/tests/ui/proc-macro/issue-75801.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
294 B
Rust
Raw Normal View History

2021-03-30 08:02:23 +00:00
//@ 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() {}