rust/tests/ui/resolve/path-attr-in-const-block.rs
Jonathan Brouwer 244d64e60b
Port #[path] to the new attribute parsing infrastructure
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-07-06 22:19:16 +02:00

11 lines
201 B
Rust

// issue#126516
// issue#126647
fn main() {
const {
#![path = foo!()]
//~^ ERROR: cannot find macro `foo` in this scope
//~| ERROR malformed `path` attribute input
}
}