Files
rust/tests/ui/proc-macro/quote/does-not-have-iter-interpolated-dup.rs
2025-06-17 01:36:54 +09:00

14 lines
298 B
Rust

#![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)*); //~ ERROR mismatched types
}