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

12 lines
287 B
Rust
Raw Normal View History

2023-11-21 02:42:09 +08:00
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
2023-11-21 02:42:09 +08:00
fn main() {}