summaryrefslogtreecommitdiffstats
path: root/tests/ui/argument-suggestions/issue-100478.stderr
blob: e4304988f9bee1990a9f5537d7c5ffcea2ce9524 (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
error[E0061]: this function takes 3 arguments but 1 argument was supplied
  --> $DIR/issue-100478.rs:34:5
   |
LL |     three_diff(T2::new(0));
   |     ^^^^^^^^^^------------
   |               ||
   |               |an argument of type `T1` is missing
   |               an argument of type `T3` is missing
   |
note: function defined here
  --> $DIR/issue-100478.rs:30:4
   |
LL | fn three_diff(_a: T1, _b: T2, _c: T3) {}
   |    ^^^^^^^^^^ ------  ------  ------
help: provide the arguments
   |
LL |     three_diff(/* T1 */, T2::new(0), /* T3 */);
   |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0308]: arguments to this function are incorrect
  --> $DIR/issue-100478.rs:35:5
   |
LL |     four_shuffle(T3::default(), T4::default(), T1::default(), T2::default());
   |     ^^^^^^^^^^^^ -------------  -------------  -------------  ------------- expected `T4`, found `T2`
   |                  |              |              |
   |                  |              |              expected `T3`, found `T1`
   |                  |              expected `T2`, found `T4`
   |                  expected `T1`, found `T3`
   |
note: function defined here
  --> $DIR/issue-100478.rs:31:4
   |
LL | fn four_shuffle(_a: T1, _b: T2, _c: T3, _d: T4) {}
   |    ^^^^^^^^^^^^ ------  ------  ------  ------
help: did you mean
   |
LL |     four_shuffle(T1::default(), T2::default(), T3::default(), T4::default());
   |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0308]: arguments to this function are incorrect
  --> $DIR/issue-100478.rs:36:5
   |
LL |     four_shuffle(T3::default(), T2::default(), T1::default(), T3::default());
   |     ^^^^^^^^^^^^ -------------                 -------------  ------------- expected `T4`, found `T3`
   |                  |                             |
   |                  |                             expected `T3`, found `T1`
   |                  expected `T1`, found `T3`
   |
note: function defined here
  --> $DIR/issue-100478.rs:31:4
   |
LL | fn four_shuffle(_a: T1, _b: T2, _c: T3, _d: T4) {}
   |    ^^^^^^^^^^^^ ------  ------  ------  ------
help: swap these arguments
   |
LL |     four_shuffle(T1::default(), T2::default(), T3::default(), /* T4 */);
   |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0061]: this function takes 8 arguments but 7 arguments were supplied
  --> $DIR/issue-100478.rs:47:5
   |
LL |     foo(
   |     ^^^
...
LL |         p3, p4, p5, p6, p7, p8,
   |         -- an argument of type `Arc<T2>` is missing
   |
note: function defined here
  --> $DIR/issue-100478.rs:29:4
   |
LL | fn foo(p1: T1, p2: Arc<T2>, p3: T3, p4: Arc<T4>, p5: T5, p6: T6, p7: T7, p8: Arc<T8>) {}
   |    ^^^ ------  -----------  ------  -----------  ------  ------  ------  -----------
help: provide the argument
   |
LL |     foo(p1, /* Arc<T2> */, p3, p4, p5, p6, p7, p8);
   |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error: aborting due to 4 previous errors

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