about summary refs log tree commit diff
path: root/tests/ui/proc-macro/quote/does-not-have-iter-interpolated.rs
blob: 507936770aa4ffc4d72f30d54145624130fb1e40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![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)*); //~ ERROR mismatched types
}