aboutsummaryrefslogtreecommitdiff
path: root/quote/tests/ui/does-not-have-iter-interpolated.rs
blob: 2c740cc0830fd8abd94efc62669e882a66750b89 (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)*);
}