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
748 B
Plaintext
Raw Normal View History

error: found both `` and `s` as identifiers, which look alike
2021-04-03 10:35:11 +08:00
--> $DIR/lint-confusable-idents.rs:8:9
2020-04-25 09:38:31 +08:00
|
LL | const : usize = 42;
| -- other identifier used here
2020-04-25 09:38:31 +08:00
...
LL | let s = "rust";
| ^ this identifier can be confused with ``
2020-04-25 09:38:31 +08:00
|
note: the lint level is defined here
2021-04-03 10:35:11 +08:00
--> $DIR/lint-confusable-idents.rs:1:9
2020-04-25 09:38:31 +08:00
|
LL | #![deny(confusable_idents)]
| ^^^^^^^^^^^^^^^^^
error: found both `s_s` and `_` as identifiers, which look alike
2021-04-03 10:35:11 +08:00
--> $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
2020-04-25 09:38:31 +08:00