about summary refs log tree commit diff
path: root/tests/ui/macros/macro-rules-attr-infinite-recursion.rs
blob: dc54c32cad364ca28ef32a76950fdea9ff4452c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#![crate_type = "lib"]
#![feature(macro_attr)]

macro_rules! attr {
    attr() { $($body:tt)* } => {
        #[attr] $($body)*
    };
    //~^^ ERROR: recursion limit reached
}

#[attr]
struct S;