2014-11-19 04:48:38 +00:00
|
|
|
extern
|
2019-10-27 23:29:23 +00:00
|
|
|
"C"suffix //~ ERROR suffixes on a string literal are invalid
|
2014-11-19 04:48:38 +00:00
|
|
|
fn foo() {}
|
|
|
|
|
|
|
|
extern
|
2019-10-27 23:29:23 +00:00
|
|
|
"C"suffix //~ ERROR suffixes on a string literal are invalid
|
2014-11-19 04:48:38 +00:00
|
|
|
{}
|
|
|
|
|
|
|
|
fn main() {
|
2019-03-26 19:09:13 +00:00
|
|
|
""suffix; //~ ERROR suffixes on a string literal are invalid
|
|
|
|
b""suffix; //~ ERROR suffixes on a byte string literal are invalid
|
|
|
|
r#""#suffix; //~ ERROR suffixes on a string literal are invalid
|
|
|
|
br#""#suffix; //~ ERROR suffixes on a byte string literal are invalid
|
|
|
|
'a'suffix; //~ ERROR suffixes on a char literal are invalid
|
|
|
|
b'a'suffix; //~ ERROR suffixes on a byte literal are invalid
|
2014-11-19 04:48:38 +00:00
|
|
|
|
2015-07-27 00:49:38 +00:00
|
|
|
1234u1024; //~ ERROR invalid width `1024` for integer literal
|
|
|
|
1234i1024; //~ ERROR invalid width `1024` for integer literal
|
|
|
|
1234f1024; //~ ERROR invalid width `1024` for float literal
|
|
|
|
1234.5f1024; //~ ERROR invalid width `1024` for float literal
|
2014-11-19 09:22:54 +00:00
|
|
|
|
2020-11-22 22:29:46 +00:00
|
|
|
1234suffix; //~ ERROR invalid suffix `suffix` for number literal
|
|
|
|
0b101suffix; //~ ERROR invalid suffix `suffix` for number literal
|
2015-07-27 00:49:38 +00:00
|
|
|
1.0suffix; //~ ERROR invalid suffix `suffix` for float literal
|
|
|
|
1.0e10suffix; //~ ERROR invalid suffix `suffix` for float literal
|
2014-11-19 04:48:38 +00:00
|
|
|
}
|