rust/tests/ui/macros/issue-118048.rs

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

11 lines
195 B
Rust
Raw Normal View History

2023-11-20 12:42:09 -06:00
macro_rules! foo {
($ty:ty) => {
fn foo(_: $ty, _: $ty) {}
}
}
foo!(_);
//~^ ERROR the placeholder `_` is not allowed within types on item signatures for functions
fn main() {}