diff options
Diffstat (limited to 'tests/ui/lexer/lex-bad-char-literals-2.rs')
-rw-r--r-- | tests/ui/lexer/lex-bad-char-literals-2.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/lexer/lex-bad-char-literals-2.rs b/tests/ui/lexer/lex-bad-char-literals-2.rs new file mode 100644 index 000000000..d35dafd9a --- /dev/null +++ b/tests/ui/lexer/lex-bad-char-literals-2.rs @@ -0,0 +1,6 @@ +// This test needs to the last one appearing in this file as it kills the parser +static c: char = + 'nope' //~ ERROR: character literal may only contain one codepoint +; + +fn main() {} |