rust/tests/ui/lint/rfc-2457-non-ascii-idents/lint-confusable-idents.stderr
2023-08-04 16:46:08 +00:00

27 lines
748 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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