summary refs log tree commit diff
path: root/tests/ui/proc-macro/quote/not-repeatable.rs
blob: d115da7318156007f1a11061355fb4da77fbc1a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// FIXME(quote): `proc_macro::quote!` doesn't support repetition at the moment, so the stderr is
// expected to be incorrect.
//@ known-bug: #54722

#![feature(proc_macro_quote)]

extern crate proc_macro;

use proc_macro::quote;

struct Ipv4Addr;

fn main() {
    let ip = Ipv4Addr;
    let _ = quote! { $($ip)* };
}