rust/tests/ui/invalid-compile-flags/print-file-names-request-malformed-crate-name.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
282 B
Rust
Raw Normal View History

// 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=file-names
#![crate_name = concat!("wrapped")] //~ ERROR malformed `crate_name` attribute input