granite-rust/src/test/ui/bad/bad-main.stderr

13 lines
396 B
Text
Raw Normal View History

2018-08-08 14:28:26 +02:00
error[E0580]: main function has wrong type
--> $DIR/bad-main.rs:11:1
|
LL | fn main(x: isize) { } //~ ERROR: main function has wrong type [E0580]
| ^^^^^^^^^^^^^^^^^ incorrect number of function parameters
|
= note: expected type `fn()`
found type `fn(isize)`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0580`.