]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mismatched_types/overloaded-calls-bad.stderr
Merge commit 'bf1c6f9871f430e284b17aa44059e0d0395e28a6' into clippyup
[rust.git] / src / test / ui / mismatched_types / overloaded-calls-bad.stderr
1 error[E0308]: mismatched types
2   --> $DIR/overloaded-calls-bad.rs:28:17
3    |
4 LL |     let ans = s("what");
5    |                 ^^^^^^ expected `isize`, found `&str`
6
7 error[E0057]: this function takes 1 argument but 0 arguments were supplied
8   --> $DIR/overloaded-calls-bad.rs:29:15
9    |
10 LL |     let ans = s();
11    |               ^-- supplied 0 arguments
12    |               |
13    |               expected 1 argument
14
15 error[E0057]: this function takes 1 argument but 2 arguments were supplied
16   --> $DIR/overloaded-calls-bad.rs:31:15
17    |
18 LL |     let ans = s("burma", "shave");
19    |               ^ -------  ------- supplied 2 arguments
20    |               |
21    |               expected 1 argument
22
23 error: aborting due to 3 previous errors
24
25 Some errors have detailed explanations: E0057, E0308.
26 For more information about an error, try `rustc --explain E0057`.