fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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