2015-03-26 03:38:25 -05:00
|
|
|
fn main() {
|
|
|
|
let _ = b"\u{a66e}";
|
2021-01-23 14:48:31 -06:00
|
|
|
//~^ ERROR unicode escape in byte string
|
2015-03-26 03:38:25 -05:00
|
|
|
|
|
|
|
let _ = b'\u{a66e}';
|
2021-01-23 14:48:31 -06:00
|
|
|
//~^ ERROR unicode escape in byte string
|
2015-03-26 03:38:25 -05:00
|
|
|
|
|
|
|
let _ = b'\u';
|
2015-07-10 14:31:44 -05:00
|
|
|
//~^ ERROR incorrect unicode escape sequence
|
2015-03-26 03:38:25 -05:00
|
|
|
|
|
|
|
let _ = b'\x5';
|
|
|
|
//~^ ERROR numeric character escape is too short
|
|
|
|
|
|
|
|
let _ = b'\xxy';
|
2021-01-23 14:48:31 -06:00
|
|
|
//~^ ERROR invalid character in numeric character escape: `x`
|
2015-03-26 03:38:25 -05:00
|
|
|
|
|
|
|
let _ = '\x5';
|
|
|
|
//~^ ERROR numeric character escape is too short
|
|
|
|
|
|
|
|
let _ = '\xxy';
|
2021-01-23 14:48:31 -06:00
|
|
|
//~^ ERROR invalid character in numeric character escape: `x`
|
2015-03-26 03:38:25 -05:00
|
|
|
|
|
|
|
let _ = b"\u{a4a4} \xf \u";
|
2021-01-23 14:48:31 -06:00
|
|
|
//~^ ERROR unicode escape in byte string
|
|
|
|
//~^^ ERROR invalid character in numeric character escape: ` `
|
2015-07-10 14:31:44 -05:00
|
|
|
//~^^^ ERROR incorrect unicode escape sequence
|
2015-03-26 03:38:25 -05:00
|
|
|
|
2017-08-17 13:02:13 -05:00
|
|
|
let _ = "\xf \u";
|
2021-01-23 14:48:31 -06:00
|
|
|
//~^ ERROR invalid character in numeric character escape: ` `
|
2019-04-25 03:48:25 -05:00
|
|
|
//~^^ ERROR incorrect unicode escape sequence
|
2018-12-27 13:21:47 -06:00
|
|
|
|
|
|
|
let _ = "\u8f";
|
|
|
|
//~^ ERROR incorrect unicode escape sequence
|
2015-03-26 03:38:25 -05:00
|
|
|
}
|