rust/tests/ui/macros/genercs-in-path-with-prettry-hir.rs
Lukas Wirth 20ab952b4d Explicitly annotate edition for unpretty=expanded and unpretty=hir tests
These emit prelude imports which means they are always edition dependent
2025-04-16 11:10:10 +02:00

15 lines
241 B
Rust

//@ compile-flags: -Zunpretty=hir
//@ edition: 2015
// issue#97006
macro_rules! m {
($attr_path: path) => {
#[$attr_path]
fn f() {}
}
}
m!(inline<u8>); //~ ERROR: unexpected generic arguments in path
fn main() {}