1 error: there is no argument named `foo`
2 --> $DIR/format-args-capture-macro-hygiene.rs:4:13
4 LL | format!(concat!("{foo}"));
7 = note: did you intend to capture a variable `foo` from the surrounding scope?
8 = note: to avoid ambiguity, `format_args!` cannot capture variables when the format string is expanded from a macro
9 = note: this error originates in the macro `concat` (in Nightly builds, run with -Z macro-backtrace for more info)
11 error: there is no argument named `bar`
12 --> $DIR/format-args-capture-macro-hygiene.rs:5:13
14 LL | format!(concat!("{ba", "r} {}"), 1);
15 | ^^^^^^^^^^^^^^^^^^^^^^^
17 = note: did you intend to capture a variable `bar` from the surrounding scope?
18 = note: to avoid ambiguity, `format_args!` cannot capture variables when the format string is expanded from a macro
19 = note: this error originates in the macro `concat` (in Nightly builds, run with -Z macro-backtrace for more info)
21 error: aborting due to 2 previous errors