]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/unicode.rs
iterate List by value
[rust.git] / tests / ui / unicode.rs
index e55a0390ff324cf80478bc1116f771ab40673f7b..27db9594f3b3305c7385ccea3506a22f534740f1 100644 (file)
@@ -1,23 +1,19 @@
-#![feature(plugin)]
-#![plugin(clippy)]
-
-#[deny(zero_width_space)]
+#[warn(clippy::zero_width_space)]
 fn zero() {
     print!("Here >​< is a ZWS, and ​another");
-               //~^ ERROR zero-width space detected
     print!("This\u{200B}is\u{200B}fine");
 }
 
-#[deny(unicode_not_nfc)]
+#[warn(clippy::unicode_not_nfc)]
 fn canon() {
-    print!("̀àh?"); //~ERROR non-nfc unicode sequence detected
-    print!("a\u{0300}h?"); // also okay
+    print!("̀àh?");
+    print!("a\u{0300}h?"); // also ok
 }
 
-#[deny(non_ascii_literal)]
+#[warn(clippy::non_ascii_literal)]
 fn uni() {
-    print!("Üben!"); //~ERROR literal non-ASCII character detected
-    print!("\u{DC}ben!"); // this is okay
+    print!("Üben!");
+    print!("\u{DC}ben!"); // this is ok
 }
 
 fn main() {