]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/unreachable-format-args.edition_2015.stderr
Rollup merge of #106323 - starkat99:stabilize-f16c_target_feature, r=petrochenkov
[rust.git] / tests / 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` which comes from the expansion of the macro `unreachable` (in Nightly builds, run with -Z macro-backtrace for more info)
10
11 error: aborting due to previous error
12