mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 12:37:37 +00:00
6 lines
281 B
Rust
6 lines
281 B
Rust
// Ensure we validate `#![crate_name]` on print requests and reject macro calls inside of it.
|
|
// See also <https://github.com/rust-lang/rust/issues/122001>.
|
|
|
|
//@ compile-flags: --print=crate-name
|
|
#![crate_name = concat!("wrapped")] //~ ERROR malformed `crate_name` attribute input
|