]> git.lizzy.rs Git - rust.git/blob - src/test/ui/fmt/format-args-capture-macro-hygiene.rs
Add `format_args_capture` feature
[rust.git] / src / test / ui / fmt / format-args-capture-macro-hygiene.rs
1 #![feature(format_args_capture)]
2
3 fn main() {
4     format!(concat!("{foo}"));         //~ ERROR: there is no argument named `foo`
5     format!(concat!("{ba", "r} {}"), 1);     //~ ERROR: there is no argument named `bar`
6 }