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

extern crate proc_macro;

use std::net::Ipv4Addr;

use proc_macro::quote;

fn main() {
    let ip = Ipv4Addr::LOCALHOST;
    let _ = quote! { $ip }; //~ ERROR the trait bound `Ipv4Addr: ToTokens` is not satisfied
}