1 error[E0308]: mismatched types
2 --> $DIR/overloaded-calls-bad.rs:33:17
4 LL | let ans = s("what");
5 | - ^^^^^^ expected `isize`, found `&str`
7 | arguments to this function are incorrect
9 note: implementation defined here
10 --> $DIR/overloaded-calls-bad.rs:10:1
12 LL | impl FnMut<(isize,)> for S {
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
15 error[E0057]: this function takes 1 argument but 0 arguments were supplied
16 --> $DIR/overloaded-calls-bad.rs:35:15
19 | ^-- an argument of type `isize` is missing
21 note: implementation defined here
22 --> $DIR/overloaded-calls-bad.rs:10:1
24 LL | impl FnMut<(isize,)> for S {
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
26 help: provide the argument
28 LL | let ans = s(/* isize */);
31 error[E0057]: this function takes 1 argument but 2 arguments were supplied
32 --> $DIR/overloaded-calls-bad.rs:37:15
34 LL | let ans = s("burma", "shave");
35 | ^ ------- ------- argument of type `&'static str` unexpected
37 | expected `isize`, found `&str`
39 note: implementation defined here
40 --> $DIR/overloaded-calls-bad.rs:10:1
42 LL | impl FnMut<(isize,)> for S {
43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
44 help: remove the extra argument
46 LL | let ans = s(/* isize */);
49 error[E0308]: mismatched types
50 --> $DIR/overloaded-calls-bad.rs:40:7
53 | - ^^ expected `i32`, found `&str`
55 | arguments to this struct are incorrect
57 note: implementation defined here
58 --> $DIR/overloaded-calls-bad.rs:25:1
60 LL | impl FnOnce<(i32,)> for F {
61 | ^^^^^^^^^^^^^^^^^^^^^^^^^
63 error: aborting due to 4 previous errors
65 Some errors have detailed explanations: E0057, E0308.
66 For more information about an error, try `rustc --explain E0057`.