rust/tests/ui/macros/genercs-in-path-with-prettry-hir.rs

15 lines
223 B
Rust
Raw Normal View History

2024-04-15 16:01:02 -05:00
//@ compile-flags: -Zunpretty=hir
// issue#97006
2024-04-15 16:01:02 -05:00
macro_rules! m {
($attr_path: path) => {
#[$attr_path]
fn f() {}
}
}
m!(inline<u8>); //~ ERROR: unexpected generic arguments in path
fn main() {}