1 error[E0425]: cannot find value `foo` in this scope
2 --> $DIR/format-args-capture-issue-94010.rs:3:16
4 LL | const FOO: i32 = 123;
5 | --------------------- similarly named constant `FOO` defined here
6 LL | println!("{foo:X}");
7 | ^^^ help: a constant with a similar name exists (notice the capitalization): `FOO`
9 error[E0425]: cannot find value `foo` in this scope
10 --> $DIR/format-args-capture-issue-94010.rs:5:18
12 LL | const FOO: i32 = 123;
13 | --------------------- similarly named constant `FOO` defined here
15 LL | println!("{:.foo$}", 0);
16 | ^^^ help: a constant with a similar name exists (notice the capitalization): `FOO`
18 error: aborting due to 2 previous errors
20 For more information about this error, try `rustc --explain E0425`.