summary refs log tree commit diff
path: root/tests/ui/macros/issue-118048.rs
blob: 3b3ab3b4fc93659b2c8821d282607461b5c01a32 (plain)
1
2
3
4
5
6
7
8
9
10
11
macro_rules! foo {
    ($ty:ty) => {
        fn foo(_: $ty, _: $ty) {}
    }
}

foo!(_);
//~^ ERROR the placeholder `_` is not allowed within types on item signatures for functions
//~| ERROR the placeholder `_` is not allowed within types on item signatures for functions

fn main() {}