rust/src/test/ui/parser/lex-bad-char-literals-4.rs
Aleksey Kladov bfa5f27847 introduce unescape module
Currently, we deal with escape sequences twice: once when we lex a
string, and a second time when we unescape literals. This PR aims to
remove this duplication, by introducing a new `unescape` mode as a
single source of truth for character escaping rules
2019-05-02 15:31:57 +03:00

6 lines
155 B
Rust

//
// This test needs to the last one appearing in this file as it kills the parser
static c: char =
' //~ ERROR: unterminated character literal
;