summaryrefslogtreecommitdiffstats
path: root/src/test/ui/attributes/key-value-expansion-on-mac.rs
blob: c1d68d8cda9e78a3173368bc542bab362293598e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![feature(rustc_attrs)]

#[rustc_dummy = stringify!(a)] // OK
macro_rules! bar {
    () => {};
}

// FIXME?: `bar` here expands before `stringify` has a chance to expand.
// `#[rustc_dummy = ...]` is validated and dropped during expansion of `bar`,
// the "unexpected expression" errors comes from the validation.
#[rustc_dummy = stringify!(b)] //~ ERROR unexpected expression: `stringify!(b)`
bar!();

fn main() {}