1
Fork 0

Handle Spans for byte and raw strings and add more detail

This commit is contained in:
Esteban Küber 2021-01-23 12:48:31 -08:00
parent b81f5811f9
commit 3b5d018ebb
35 changed files with 279 additions and 184 deletions

View file

@ -2,7 +2,8 @@ static FOO: &'static [u8] = b"\f"; //~ ERROR unknown byte escape
pub fn main() {
b"\f"; //~ ERROR unknown byte escape
b"\x0Z"; //~ ERROR invalid character in numeric character escape: Z
b"é"; //~ ERROR byte constant must be ASCII
b"\x0Z"; //~ ERROR invalid character in numeric character escape: `Z`
b"é"; //~ ERROR non-ASCII character in byte constant
br##"é"##; //~ ERROR raw byte string must be ASCII
b"a //~ ERROR unterminated double quote byte string
}