rust/tests/ui/proc-macro/quote/not-repeatable.rs
lcnr 7e14260fd1 probe_op silence ambiguity errors if tainted
see the `proc-macro/quote/not-repeatable.rs` test for a case where this is useful
2026-02-16 19:36:09 +00:00

13 lines
282 B
Rust

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