mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00
13 lines
196 B
Rust
13 lines
196 B
Rust
#![crate_type = "lib"]
|
|
#![feature(macro_attr)]
|
|
|
|
macro_rules! attr {
|
|
attr() { $($body:tt)* } => {
|
|
#[attr] $($body)*
|
|
};
|
|
//~^^ ERROR: recursion limit reached
|
|
}
|
|
|
|
#[attr]
|
|
struct S;
|