about summary refs log tree commit diff
path: root/src/test/ui/parser/byte-string-literals.rs
blob: caffd9efbed37f9bcf964a9be40fd9f02bba1949 (plain)
1
2
3
4
5
6
7
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"a  //~ ERROR unterminated double quote byte string
}