diff options
Diffstat (limited to 'tests/ui/lint/rfc-2457-non-ascii-idents/lint-mixed-script-confusables.rs')
| -rw-r--r-- | tests/ui/lint/rfc-2457-non-ascii-idents/lint-mixed-script-confusables.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/lint/rfc-2457-non-ascii-idents/lint-mixed-script-confusables.rs b/tests/ui/lint/rfc-2457-non-ascii-idents/lint-mixed-script-confusables.rs new file mode 100644 index 00000000000..9d837d41f10 --- /dev/null +++ b/tests/ui/lint/rfc-2457-non-ascii-idents/lint-mixed-script-confusables.rs @@ -0,0 +1,14 @@ +#![deny(mixed_script_confusables)] + +struct ΑctuallyNotLatin; +//~^ ERROR the usage of Script Group `Greek` in this crate consists solely of + +fn main() { + let v = ΑctuallyNotLatin; +} + +mod роре { +//~^ ERROR the usage of Script Group `Cyrillic` in this crate consists solely of + const エ: &'static str = "アイウ"; + //~^ ERROR the usage of Script Group `Japanese, Katakana` in this crate consists solely of +} |
