rust/src/test/ui/parser/raw-byte-string-literals.rs
2019-06-10 17:32:15 +02:00

7 lines
268 B
Rust

// ignore-tidy-cr
// compile-flags: -Z continue-parse-after-error
pub fn main() {
br"a
"; //~ ERROR bare CR not allowed in raw string
br"é"; //~ ERROR raw byte string must be ASCII
br##~"a"~##; //~ ERROR only `#` is allowed in raw string delimitation
}