mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-10 23:54:58 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
15 lines
318 B
Plaintext
15 lines
318 B
Plaintext
error: expected identifier, found `1main`
|
|
--> $DIR/integer-literal-start-ident.rs:1:4
|
|
|
|
|
LL | fn 1main() {}
|
|
| ^^^^^ expected identifier
|
|
|
|
|
help: identifiers cannot start with a number
|
|
--> $DIR/integer-literal-start-ident.rs:1:4
|
|
|
|
|
LL | fn 1main() {}
|
|
| ^
|
|
|
|
error: aborting due to 1 previous error
|
|
|