aboutsummaryrefslogtreecommitdiff
path: root/quote/tests/ui/does-not-have-iter-interpolated-dup.rs
blob: 0a39f4150704fb168d33408460d00a0a7c8418a1 (plain)
1
2
3
4
5
6
7
8
9
use quote::quote;

fn main() {
    let nonrep = "";

    // Without some protection against repetitions with no iterator somewhere
    // inside, this would loop infinitely.
    quote!(#(#nonrep #nonrep)*);
}