about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorSimonas Kazlauskas <git@kazlauskas.me>2015-07-10 22:31:44 +0300
committerSimonas Kazlauskas <git@kazlauskas.me>2015-07-13 02:09:22 +0300
commit4d65ef45491b62fbecdb9a24822c216aa96bb34e (patch)
tree0e45af275b2db492e30f4a99c86abe9e2023fdc3 /src/test
parentd22f189da13f8ffb3c9227a038615608e99a6211 (diff)
downloadrust-4d65ef45491b62fbecdb9a24822c216aa96bb34e.tar.gz
rust-4d65ef45491b62fbecdb9a24822c216aa96bb34e.zip
Tell unicode escapes can’t be used as bytes earlier/more
Diffstat (limited to 'src/test')
-rw-r--r--src/test/parse-fail/issue-23620-invalid-escapes.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/test/parse-fail/issue-23620-invalid-escapes.rs b/src/test/parse-fail/issue-23620-invalid-escapes.rs
index 98db3efe114..1790b9164b7 100644
--- a/src/test/parse-fail/issue-23620-invalid-escapes.rs
+++ b/src/test/parse-fail/issue-23620-invalid-escapes.rs
@@ -16,7 +16,8 @@ fn main() {
     //~^ ERROR unicode escape sequences cannot be used as a byte or in a byte string
 
     let _ = b'\u';
-    //~^ ERROR unknown byte escape: u
+    //~^ ERROR incorrect unicode escape sequence
+    //~^^ ERROR unicode escape sequences cannot be used as a byte or in a byte string
 
     let _ = b'\x5';
     //~^ ERROR numeric character escape is too short
@@ -35,11 +36,12 @@ fn main() {
     let _ = b"\u{a4a4} \xf \u";
     //~^ ERROR unicode escape sequences cannot be used as a byte or in a byte string
     //~^^ ERROR illegal character in numeric character escape:
-    //~^^^ ERROR unknown byte escape: u
+    //~^^^ ERROR incorrect unicode escape sequence
+    //~^^^^ ERROR unicode escape sequences cannot be used as a byte or in a byte string
 
     let _ = "\u{ffffff} \xf \u";
     //~^ ERROR illegal unicode character escape
     //~^^ ERROR illegal character in numeric character escape:
     //~^^^ ERROR form of character escape may only be used with characters in the range [\x00-\x7f]
-    //~^^^^ ERROR incomplete unicode escape sequence
+    //~^^^^ ERROR incorrect unicode escape sequence
 }