Files
rust/tests/ui/proc-macro/quote/not-quotable.rs

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

13 lines
246 B
Rust
Raw Normal View History

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