]> git.proxmox.com Git - rustc.git/blobdiff - src/test/parse-fail/lex-bad-char-literals.rs
Imported Upstream version 1.6.0+dfsg1
[rustc.git] / src / test / parse-fail / lex-bad-char-literals.rs
index 4aa01bcde69897b3423fc5b32ff32c269575039b..6335632455fbd67aa9fe27a33aea26a0be8e7587 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// compile-flags: -Z parse-only
 static c3: char =
     '\x1' //~ ERROR: numeric character escape is too short
 ;
@@ -24,8 +25,8 @@ static s: &'static str =
     "\●" //~ ERROR: unknown character escape
 ;
 
-// THIS MUST BE LAST, since unterminated character constants kill the lexer
+// THIS MUST BE LAST, since it kills the lexer
 
 static c: char =
-    '●  //~ ERROR: unterminated character constant
+    '●  //~ ERROR: character literal may only contain one codepoint
 ;