summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/rfc-2457-non-ascii-idents/lint-confusable-idents.stderr
blob: e9906c83d126c1efffb28568aa074d76a8e6d2c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
error: identifier pair considered confusable between `s` and `s`
  --> $DIR/lint-confusable-idents.rs:8:9
   |
LL | const s: usize = 42;
   |       -- this is where the previous identifier occurred
...
LL |     let s = "rust";
   |         ^
   |
note: the lint level is defined here
  --> $DIR/lint-confusable-idents.rs:1:9
   |
LL | #![deny(confusable_idents)]
   |         ^^^^^^^^^^^^^^^^^

error: identifier pair considered confusable between `s_s` and `s_s`
  --> $DIR/lint-confusable-idents.rs:9:9
   |
LL | const s_s: usize = 42;
   |       --- this is where the previous identifier occurred
...
LL |     let s_s = "rust2";
   |         ^^^^^

error: aborting due to 2 previous errors