1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
error[E0308]: mismatched types
--> $DIR/basic.rs:20:13
|
LL | invalid(1.0);
| ^^^ expected `u32`, found floating-point number
error[E0061]: this function takes 0 arguments but 1 argument was supplied
--> $DIR/basic.rs:21:5
|
LL | extra("");
| ^^^^^ -- supplied 1 argument
| |
| expected 0 arguments
|
note: function defined here
--> $DIR/basic.rs:14:4
|
LL | fn extra() {}
| ^^^^^
error[E0061]: this function takes 1 argument but 0 arguments were supplied
--> $DIR/basic.rs:22:5
|
LL | missing();
| ^^^^^^^-- supplied 0 arguments
| |
| expected 1 argument
|
note: function defined here
--> $DIR/basic.rs:15:4
|
LL | fn missing(_i: u32) {}
| ^^^^^^^ -------
error[E0308]: mismatched types
--> $DIR/basic.rs:23:13
|
LL | swapped("", 1);
| ^^ expected `u32`, found `&str`
error[E0308]: mismatched types
--> $DIR/basic.rs:23:17
|
LL | swapped("", 1);
| ^ expected `&str`, found integer
error[E0308]: mismatched types
--> $DIR/basic.rs:25:14
|
LL | permuted(Y {}, Z {}, X {});
| ^^^^ expected struct `X`, found struct `Y`
error[E0308]: mismatched types
--> $DIR/basic.rs:25:20
|
LL | permuted(Y {}, Z {}, X {});
| ^^^^ expected struct `Y`, found struct `Z`
error[E0308]: mismatched types
--> $DIR/basic.rs:25:26
|
LL | permuted(Y {}, Z {}, X {});
| ^^^^ expected struct `Z`, found struct `X`
error[E0057]: this function takes 1 argument but 0 arguments were supplied
--> $DIR/basic.rs:30:5
|
LL | closure();
| ^^^^^^^-- supplied 0 arguments
| |
| expected 1 argument
error: aborting due to 9 previous errors
Some errors have detailed explanations: E0057, E0061, E0308.
For more information about an error, try `rustc --explain E0057`.
|