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