summaryrefslogtreecommitdiffstats
path: root/tests/ui/argument-suggestions/basic.stderr
blob: c74186285f9f08560355849adce977f599333491 (plain)
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
error[E0308]: mismatched types
  --> $DIR/basic.rs:20:13
   |
LL |     invalid(1.0);
   |     ------- ^^^ expected `u32`, found floating-point number
   |     |
   |     arguments to this function are incorrect
   |
note: function defined here
  --> $DIR/basic.rs:13:4
   |
LL | fn invalid(_i: u32) {}
   |    ^^^^^^^ -------

error[E0061]: this function takes 0 arguments but 1 argument was supplied
  --> $DIR/basic.rs:21:5
   |
LL |     extra("");
   |     ^^^^^ --
   |           |
   |           unexpected argument of type `&'static str`
   |           help: remove the extra argument
   |
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();
   |     ^^^^^^^-- an argument of type `u32` is missing
   |
note: function defined here
  --> $DIR/basic.rs:15:4
   |
LL | fn missing(_i: u32) {}
   |    ^^^^^^^ -------
help: provide the argument
   |
LL |     missing(/* u32 */);
   |            ~~~~~~~~~~~

error[E0308]: arguments to this function are incorrect
  --> $DIR/basic.rs:23:5
   |
LL |     swapped("", 1);
   |     ^^^^^^^ --  - expected `&str`, found `{integer}`
   |             |
   |             expected `u32`, found `&'static str`
   |
note: function defined here
  --> $DIR/basic.rs:16:4
   |
LL | fn swapped(_i: u32, _s: &str) {}
   |    ^^^^^^^ -------  --------
help: swap these arguments
   |
LL |     swapped(1, "");
   |            ~~~~~~~

error[E0308]: arguments to this function are incorrect
  --> $DIR/basic.rs:24:5
   |
LL |     permuted(Y {}, Z {}, X {});
   |     ^^^^^^^^ ----  ----  ---- expected `Z`, found `X`
   |              |     |
   |              |     expected `Y`, found `Z`
   |              expected `X`, found `Y`
   |
note: function defined here
  --> $DIR/basic.rs:17:4
   |
LL | fn permuted(_x: X, _y: Y, _z: Z) {}
   |    ^^^^^^^^ -----  -----  -----
help: reorder these arguments
   |
LL |     permuted(X {}, Y {}, Z {});
   |             ~~~~~~~~~~~~~~~~~~

error[E0057]: this function takes 1 argument but 0 arguments were supplied
  --> $DIR/basic.rs:27:5
   |
LL |     closure();
   |     ^^^^^^^-- an argument is missing
   |
note: closure defined here
  --> $DIR/basic.rs:26:19
   |
LL |     let closure = |x| x;
   |                   ^^^
help: provide the argument
   |
LL |     closure(/* x */);
   |            ~~~~~~~~~

error: aborting due to 6 previous errors

Some errors have detailed explanations: E0057, E0061, E0308.
For more information about an error, try `rustc --explain E0057`.