fparkan/vendor/quote/tests/ui/does-not-have-iter-interpolated.rs

10 lines
201 B
Rust
Raw Normal View History

use quote::quote;
fn main() {
let nonrep = "";
// Without some protection against repetitions with no iterator somewhere
// inside, this would loop infinitely.
quote!(#(#nonrep)*);
}