]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mismatched_types/overloaded-calls-bad.stderr
Auto merge of #92932 - ouz-a:master, r=oli-obk
[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 note: associated function defined here
16   --> $SRC_DIR/core/src/ops/function.rs:LL:COL
17    |
18 LL |     extern "rust-call" fn call_mut(&mut self, args: Args) -> Self::Output;
19    |                           ^^^^^^^^
20
21 error[E0308]: mismatched types
22   --> $DIR/overloaded-calls-bad.rs:31:17
23    |
24 LL |     let ans = s("burma", "shave");
25    |                 ^^^^^^^ expected `isize`, found `&str`
26
27 error[E0057]: this function takes 1 argument but 2 arguments were supplied
28   --> $DIR/overloaded-calls-bad.rs:31:15
29    |
30 LL |     let ans = s("burma", "shave");
31    |               ^ -------  ------- supplied 2 arguments
32    |               |
33    |               expected 1 argument
34    |
35 note: associated function defined here
36   --> $SRC_DIR/core/src/ops/function.rs:LL:COL
37    |
38 LL |     extern "rust-call" fn call_mut(&mut self, args: Args) -> Self::Output;
39    |                           ^^^^^^^^
40
41 error: aborting due to 4 previous errors
42
43 Some errors have detailed explanations: E0057, E0308.
44 For more information about an error, try `rustc --explain E0057`.