2020-05-09 20:10:15 -05:00
|
|
|
|
error: identifier pair considered confusable between `s` and `s`
|
2021-04-02 21:35:11 -05:00
|
|
|
|
--> $DIR/lint-confusable-idents.rs:8:9
|
2020-04-24 20:38:31 -05:00
|
|
|
|
|
|
|
|
|
|
LL | const s: usize = 42;
|
2020-05-09 20:10:15 -05:00
|
|
|
|
| -- this is where the previous identifier occurred
|
2020-04-24 20:38:31 -05:00
|
|
|
|
...
|
|
|
|
|
LL | let s = "rust";
|
2020-05-09 20:10:15 -05:00
|
|
|
|
| ^
|
2020-04-24 20:38:31 -05:00
|
|
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2021-04-02 21:35:11 -05:00
|
|
|
|
--> $DIR/lint-confusable-idents.rs:1:9
|
2020-04-24 20:38:31 -05:00
|
|
|
|
|
|
|
|
|
|
LL | #![deny(confusable_idents)]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-08-05 02:29:13 -05:00
|
|
|
|
error: identifier pair considered confusable between `s_s` and `s_s`
|
2021-04-02 21:35:11 -05:00
|
|
|
|
--> $DIR/lint-confusable-idents.rs:9:9
|
2020-08-05 02:29:13 -05:00
|
|
|
|
|
|
|
|
|
|
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
|
2020-04-24 20:38:31 -05:00
|
|
|
|
|