]> git.lizzy.rs Git - rust.git/blob - src/test/ui/fmt/feature-gate-format-args-capture.stderr
Stabilize File::options()
[rust.git] / src / test / ui / fmt / feature-gate-format-args-capture.stderr
1 error: there is no argument named `foo`
2   --> $DIR/feature-gate-format-args-capture.rs:2:14
3    |
4 LL |     format!("{foo}");
5    |              ^^^^^
6    |
7    = help: if you intended to capture `foo` from the surrounding scope, add `#![feature(format_args_capture)]` to the crate attributes
8
9 error: there is no argument named `foo`
10   --> $DIR/feature-gate-format-args-capture.rs:5:13
11    |
12 LL |     panic!("{foo} {bar}", bar=1);
13    |             ^^^^^
14    |
15    = help: if you intended to capture `foo` from the surrounding scope, add `#![feature(format_args_capture)]` to the crate attributes
16
17 error: aborting due to 2 previous errors
18