2020-05-09 20:10:15 -05:00
|
|
|
|
error: identifier pair considered confusable between `s` and `s`
|
|
|
|
|
--> $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
|
|
|
|
|
--> $DIR/lint-confusable-idents.rs:2:9
|
|
|
|
|
|
|
|
|
|
|
LL | #![deny(confusable_idents)]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|