]> git.lizzy.rs Git - rust.git/blob - tests/ui/unicode.rs
remove all //~ from tests
[rust.git] / tests / ui / unicode.rs
1 #![feature(plugin)]
2 #![plugin(clippy)]
3
4 #[deny(zero_width_space)]
5 fn zero() {
6     print!("Here >​< is a ZWS, and ​another");
7
8     print!("This\u{200B}is\u{200B}fine");
9 }
10
11 #[deny(unicode_not_nfc)]
12 fn canon() {
13     print!("̀àh?");
14     print!("a\u{0300}h?"); // also okay
15 }
16
17 #[deny(non_ascii_literal)]
18 fn uni() {
19     print!("Üben!");
20     print!("\u{DC}ben!"); // this is okay
21 }
22
23 fn main() {
24     zero();
25     uni();
26     canon();
27 }