about summary refs log tree commit diff
path: root/tests/ui/attributes/crate-name-macro-call.rs
blob: 61076349cc3bfeee2e2a93e30a874720e9c4457c (plain)
1
2
3
4
5
6
// issue: rust-lang/rust#122001
// Ensure we reject macro calls inside `#![crate_name]` as their result wouldn't get honored anyway.

#![crate_name = concat!("my", "crate")] //~ ERROR attribute value must be a literal

fn main() {}