X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Fui%2Fparser%2Fbyte-string-literals.stderr;h=4f22a16224f0c3f2b9fc4bc9f4588b19ea0189d4;hb=c1abb6f4d6756086d74008cacf51e42ae2cda7bb;hp=3a5a8b331d339dd1db09b29745c6dbfeb6875089;hpb=fb311e14d51384fdb6ef02b488e0420d82ee2442;p=rust.git diff --git a/src/test/ui/parser/byte-string-literals.stderr b/src/test/ui/parser/byte-string-literals.stderr index 3a5a8b331d3..4f22a16224f 100644 --- a/src/test/ui/parser/byte-string-literals.stderr +++ b/src/test/ui/parser/byte-string-literals.stderr @@ -24,10 +24,12 @@ error: non-ASCII character in byte constant --> $DIR/byte-string-literals.rs:6:7 | LL | b"é"; - | ^ - | | - | byte constant must be ASCII - | help: use a \xHH escape for a non-ASCII byte: `\xE9` + | ^ byte constant must be ASCII + | +help: if you meant to use the unicode code point for 'é', use a \xHH escape + | +LL | b"\xE9"; + | ^^^^ error: raw byte string must be ASCII --> $DIR/byte-string-literals.rs:7:10