1 // aux-build:format-string-proc-macro.rs
4 extern crate format_string_proc_macro;
6 macro_rules! def_site {
7 () => { "{foo}" } //~ ERROR: there is no argument named `foo`
10 macro_rules! call_site {
11 ($fmt:literal) => { $fmt }
15 format!(concat!("{foo}")); //~ ERROR: there is no argument named `foo`
16 format!(concat!("{ba", "r} {}"), 1); //~ ERROR: there is no argument named `bar`
19 format!(call_site!("{foo}")); //~ ERROR: there is no argument named `foo`
21 format!(foo_with_input_span!("")); //~ ERROR: there is no argument named `foo`