about summary refs log tree commit diff
path: root/tests/ui/attributes/crate-type-macro-not-crate.rs
blob: e5eb22d6f6e25311563887ac6c8bb2a12e81d349 (plain)
1
2
3
4
5
6
7
8
9
// Tests for the issue in #137589


macro_rules! foo {
    ($x:expr) => {"rlib"}
}

#[crate_type = foo!()] //~ ERROR unexpected end of macro invocation
fn main() {}