rust/tests/ui/lint/rfc-2457-non-ascii-idents/lint-confusable-idents.stderr
2023-01-11 09:32:08 +00:00

27 lines
706 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: identifier pair considered confusable between `` and `s`
--> $DIR/lint-confusable-idents.rs:8:9
|
LL | const : usize = 42;
| -- this is where the previous identifier occurred
...
LL | let s = "rust";
| ^
|
note: the lint level is defined here
--> $DIR/lint-confusable-idents.rs:1:9
|
LL | #![deny(confusable_idents)]
| ^^^^^^^^^^^^^^^^^
error: identifier pair considered confusable between `s_s` and `_`
--> $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