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

27 lines
748 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

error: found both `` and `s` as identifiers, which look alike
--> $DIR/lint-confusable-idents.rs:8:9
|
LL | const : usize = 42;
| -- other identifier used here
...
LL | let s = "rust";
| ^ this identifier can be confused with ``
|
note: the lint level is defined here
--> $DIR/lint-confusable-idents.rs:1:9
|
LL | #![deny(confusable_idents)]
| ^^^^^^^^^^^^^^^^^
error: found both `s_s` and `_` as identifiers, which look alike
--> $DIR/lint-confusable-idents.rs:9:9
|
LL | const s_s: usize = 42;
| --- other identifier used here
...
LL | let _ = "rust2";
| ^^^^^ this identifier can be confused with `s_s`
error: aborting due to 2 previous errors