27 lines
1.1 KiB
Rust
27 lines
1.1 KiB
Rust
extern
|
|
"C"suffix //~ ERROR suffixes on string literals are invalid
|
|
fn foo() {}
|
|
|
|
extern
|
|
"C"suffix //~ ERROR suffixes on string literals are invalid
|
|
{}
|
|
|
|
fn main() {
|
|
""suffix; //~ ERROR suffixes on string literals are invalid
|
|
b""suffix; //~ ERROR suffixes on byte string literals are invalid
|
|
r#""#suffix; //~ ERROR suffixes on string literals are invalid
|
|
br#""#suffix; //~ ERROR suffixes on byte string literals are invalid
|
|
'a'suffix; //~ ERROR suffixes on char literals are invalid
|
|
b'a'suffix; //~ ERROR suffixes on byte literals are invalid
|
|
|
|
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
|
|
|
|
1234suffix; //~ ERROR invalid suffix `suffix` for number literal
|
|
0b101suffix; //~ ERROR invalid suffix `suffix` for number literal
|
|
1.0suffix; //~ ERROR invalid suffix `suffix` for float literal
|
|
1.0e10suffix; //~ ERROR invalid suffix `suffix` for float literal
|
|
}
|