]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/unreachable-format-args.edition_2015.stderr
Rollup merge of #93613 - crlf0710:rename_to_async_iter, r=yaahc
[rust.git] / src / test / ui / macros / unreachable-format-args.edition_2015.stderr
1 error: there is no argument named `x`
2   --> $DIR/unreachable-format-args.rs:13:5
3    |
4 LL |     unreachable!("x is {x} and y is {y}", y = 0);
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: did you intend to capture a variable `x` 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 `$crate::concat` (in Nightly builds, run with -Z macro-backtrace for more info)
10
11 error: aborting due to previous error
12