2014-05-23 22:20:46 +00:00
|
|
|
// ignore-tidy-cr
|
|
|
|
// ignore-tidy-tab
|
2020-01-08 18:25:42 +00:00
|
|
|
|
2013-09-19 18:55:03 +00:00
|
|
|
fn main() {
|
|
|
|
// these literals are just silly.
|
|
|
|
''';
|
2021-01-23 20:48:31 +00:00
|
|
|
//~^ ERROR: character constant must be escaped: `'`
|
2014-05-23 22:20:46 +00:00
|
|
|
|
|
|
|
// note that this is a literal "\n" byte
|
|
|
|
'
|
|
|
|
';
|
2021-01-23 20:48:31 +00:00
|
|
|
//~^^ ERROR: character constant must be escaped: `\n`
|
2014-05-23 22:20:46 +00:00
|
|
|
|
|
|
|
// note that this is a literal "\r" byte
|
2021-01-23 20:48:31 +00:00
|
|
|
'
'; //~ ERROR: character constant must be escaped: `\r`
|
2014-05-23 22:20:46 +00:00
|
|
|
|
|
|
|
// note that this is a literal tab character here
|
|
|
|
' ';
|
2021-01-23 20:48:31 +00:00
|
|
|
//~^ ERROR: character constant must be escaped: `\t`
|
2013-09-19 18:55:03 +00:00
|
|
|
}
|