1#### Note: this error code is no longer emitted by the compiler.
2
3▶You used a function or type which doesn't fit the requirements for where it was
4used. Erroneous code examples:
5
· · ·
13// or:
14
15▶fn main() -> i32 { 0 }
16// error: main function expects type: `fn() {main}`: expected (), found i32
17
· · ·
16▶// error: main function expects type: `fn() {main}`: expected (), found i32
17
18// or:
· · ·
37```
38
39▶For the first code example, please check the function definition. Example:
40
41```
· · ·
47```
48
49▶The second case example is a bit particular: the main function must always
50have this definition:
51
+ 1 more matches in this file