rust/tests/ui/resolve/path-attr-in-const-block.rs
2025-08-24 09:20:57 +02:00

11 lines
203 B
Rust

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