]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/parser/ascii-only-character-escape.rs
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / parser / ascii-only-character-escape.rs
index 20d3edf12517514475b8c8c077918ee1b7c99667..725c8ad23515e615e6bf717487cf346806a920c8 100644 (file)
@@ -1,6 +1,6 @@
 fn main() {
-    let x = "\x80"; //~ ERROR may only be used
-    let y = "\xff"; //~ ERROR may only be used
-    let z = "\xe2"; //~ ERROR may only be used
+    let x = "\x80"; //~ ERROR out of range hex escape
+    let y = "\xff"; //~ ERROR out of range hex escape
+    let z = "\xe2"; //~ ERROR out of range hex escape
     let a = b"\x00e2";  // ok because byte literal
 }