mirror of https://github.com/rust-lang/rust.git
18 lines
420 B
Rust
18 lines
420 B
Rust
// FIXME(quote): `proc_macro::quote!` doesn't support repetition at the moment, so the stderr is
|
|
// expected to be incorrect.
|
|
//@ known-bug: #54722
|
|
|
|
#![feature(proc_macro_quote)]
|
|
|
|
extern crate proc_macro;
|
|
|
|
use proc_macro::quote;
|
|
|
|
fn main() {
|
|
let nonrep = "";
|
|
|
|
// Without some protection against repetitions with no iterator somewhere
|
|
// inside, this would loop infinitely.
|
|
quote!($($nonrep $nonrep)*);
|
|
}
|