about summary refs log tree commit diff
path: root/tests/ui/proc-macro/quote/not-repeatable.rs
blob: 0291e4ddf88d6f409f1283c11be99f7748741e9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#![feature(proc_macro_quote)]

extern crate proc_macro;

use proc_macro::quote;

struct Ipv4Addr;

fn main() {
    let ip = Ipv4Addr;
    let _ = quote! { $($ip)* }; //~ ERROR the method `quote_into_iter` exists for struct `Ipv4Addr`, but its trait bounds were not satisfied
}