]>
git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/unicode.rs
2 #[warn(clippy::invisible_characters)]
4 print
!("Here >< is a ZWS, and another");
5 print
!("This\u{200B}is\u{200B}fine");
6 print
!("Here >< is a SHY, and another");
7 print
!("This\u{ad}is\u{ad}fine");
8 print
!("Here >< is a WJ, and another");
9 print
!("This\u{2060}is\u{2060}fine");
12 #[warn(clippy::unicode_not_nfc)]
15 print
!("a\u{0300}h?"); // also ok
18 #[warn(clippy::non_ascii_literal)]
21 print
!("\u{DC}ben!"); // this is ok
25 #[warn(clippy::non_ascii_literal)]
27 const _EMPTY_BLOCK
: char = '▱'
;
28 const _FULL_BLOCK
: char = '▰'
;