about summary refs log tree commit diff
path: root/tests/ui/invalid-compile-flags/print-file-names-request-malformed-crate-name-2.rs
blob: 1ac1208ee44090b96f43ca1add8e08ae025529c7 (plain)
1
2
3
4
5
6
7
// Ensure that we validate *all* `#![crate_name]`s on print requests, not just the first,
// and that we reject macro calls inside of them.
// See also <https://github.com/rust-lang/rust/issues/122001>.

//@ compile-flags: --print=file-names
#![crate_name = "this_one_is_okay"]
#![crate_name = concat!("this_one_is_not")] //~ ERROR attribute value must be a literal