rust/tests/ui/lint/rfc-2457-non-ascii-idents/lint-confusable-idents.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
706 B
Plaintext
Raw Normal View History

error: identifier pair considered confusable between `` 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 : usize = 42;
| -- this is where the previous identifier occurred
2020-04-24 20:38:31 -05:00
...
LL | let s = "rust";
| ^
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)]
| ^^^^^^^^^^^^^^^^^
error: identifier pair considered confusable between `s_s` and `_`
2021-04-02 21:35:11 -05:00
--> $DIR/lint-confusable-idents.rs:9:9
|
LL | const s_s: usize = 42;
| --- this is where the previous identifier occurred
...
LL | let _ = "rust2";
| ^^^^^
error: aborting due to 2 previous errors
2020-04-24 20:38:31 -05:00