diff options
Diffstat (limited to 'src/test/ui/parser/bad-char-literals.rs')
-rw-r--r-- | src/test/ui/parser/bad-char-literals.rs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/test/ui/parser/bad-char-literals.rs b/src/test/ui/parser/bad-char-literals.rs deleted file mode 100644 index 748b4a222..000000000 --- a/src/test/ui/parser/bad-char-literals.rs +++ /dev/null @@ -1,20 +0,0 @@ -// ignore-tidy-cr -// ignore-tidy-tab - -fn main() { - // these literals are just silly. - '''; - //~^ ERROR: character constant must be escaped: `'` - - // note that this is a literal "\n" byte - ' -'; - //~^^ ERROR: character constant must be escaped: `\n` - - // note that this is a literal "\r" byte - '
'; //~ ERROR: character constant must be escaped: `\r` - - // note that this is a literal tab character here - ' '; - //~^ ERROR: character constant must be escaped: `\t` -} |