fork/rust

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

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

master
748 B26 linesraw
1error: found both `s` and `s` as identifiers, which look alike
2  --> $DIR/lint-confusable-idents.rs:8:9
3   |
4LL | const s: usize = 42;
5   |       -- other identifier used here
6...
7LL |     let s = "rust";
8   |         ^ this identifier can be confused with `s`
9   |
10note: the lint level is defined here
11  --> $DIR/lint-confusable-idents.rs:1:9
12   |
13LL | #![deny(confusable_idents)]
14   |         ^^^^^^^^^^^^^^^^^
15
16error: found both `s_s` and `s_s` as identifiers, which look alike
17  --> $DIR/lint-confusable-idents.rs:9:9
18   |
19LL | const s_s: usize = 42;
20   |       --- other identifier used here
21...
22LL |     let s_s = "rust2";
23   |         ^^^^^ this identifier can be confused with `s_s`
24
25error: aborting due to 2 previous errors
26