summary refs log tree commit diff
path: root/src/test/ui/fmt/feature-gate-format-args-capture.stderr
blob: f08f1651cb62260237cc5f88e50df0fcf106a072 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error: there is no argument named `foo`
  --> $DIR/feature-gate-format-args-capture.rs:2:14
   |
LL |     format!("{foo}");
   |              ^^^^^
   |
   = help: if you intended to capture `foo` from the surrounding scope, add `#![feature(format_args_capture)]` to the crate attributes

error: there is no argument named `foo`
  --> $DIR/feature-gate-format-args-capture.rs:5:13
   |
LL |     panic!("{foo} {bar}", bar=1);
   |             ^^^^^
   |
   = help: if you intended to capture `foo` from the surrounding scope, add `#![feature(format_args_capture)]` to the crate attributes

error: aborting due to 2 previous errors