2025-01-09 02:29:02 +01:00
|
|
|
#![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.
|
2025-05-27 02:30:53 +09:00
|
|
|
quote!($($nonrep)*); //~ ERROR mismatched types
|
2025-01-09 02:29:02 +01:00
|
|
|
}
|