]> git.lizzy.rs Git - rust.git/blob - tests/ui/fmt/format-args-capture-issue-94010.stderr
Rollup merge of #107037 - tmiasko:rank, r=oli-obk
[rust.git] / tests / ui / fmt / format-args-capture-issue-94010.stderr
1 error[E0425]: cannot find value `foo` in this scope
2   --> $DIR/format-args-capture-issue-94010.rs:3:16
3    |
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`
8
9 error[E0425]: cannot find value `foo` in this scope
10   --> $DIR/format-args-capture-issue-94010.rs:5:18
11    |
12 LL |     const FOO: i32 = 123;
13    |     --------------------- similarly named constant `FOO` defined here
14 ...
15 LL |     println!("{:.foo$}", 0);
16    |                  ^^^ help: a constant with a similar name exists (notice the capitalization): `FOO`
17
18 error: aborting due to 2 previous errors
19
20 For more information about this error, try `rustc --explain E0425`.