blob: 43efaf884e3a7aab2a36f1f732b29e32b9cdb724 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
error[E0580]: `main` function has wrong type
--> $DIR/main-wrong-type.rs:6:1
|
LL | fn main(foo: S) {
| ^^^^^^^^^^^^^^^ incorrect number of function parameters
|
= note: expected fn pointer `fn()`
found fn pointer `fn(S)`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0580`.
|