quote-example-pkg 1.0.66

Quasi-quoting macro quote!(...)
Documentation
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)*);
}