about summary refs log tree commit diff
path: root/tests/ui/attributes/crate-name-macro-call.rs
blob: 1aae2e506e29bed3143aadab6424198bcb2fc0ba (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 malformed `crate_name` attribute input

fn main() {}