fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: there is no argument named `a` 2 --> $DIR/format-args-capture-first-literal-is-macro.rs:16:26 3 | 4LL | format!(identity_pm!("{a}")); 5 | ^^^^^ 6 | 7 = note: did you intend to capture a variable `a` from the surrounding scope? 8 = note: to avoid ambiguity, `format_args!` cannot capture variables when the format string is expanded from a macro 9 10error: there is no argument named `a` 11 --> $DIR/format-args-capture-first-literal-is-macro.rs:8:9 12 | 13LL | $tt 14 | ^^^ 15 | 16 = note: did you intend to capture a variable `a` from the surrounding scope? 17 = note: to avoid ambiguity, `format_args!` cannot capture variables when the format string is expanded from a macro 18 19error: there is no argument named `a` 20 --> $DIR/format-args-capture-first-literal-is-macro.rs:19:13 21 | 22LL | format!(concat!("{a}")); 23 | ^^^^^^^^^^^^^^ 24 | 25 = note: did you intend to capture a variable `a` from the surrounding scope? 26 = note: to avoid ambiguity, `format_args!` cannot capture variables when the format string is expanded from a macro 27 = note: this error originates in the macro `concat` (in Nightly builds, run with -Z macro-backtrace for more info) 28 29error: aborting due to 3 previous errors 30