Files
rust/tests/ui/proc-macro/quote/does-not-have-iter-interpolated.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
290 B
Rust
Raw Normal View History

#![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
}