]> git.lizzy.rs Git - rust.git/blob - src/test/ui/argument-suggestions/too-long.rs
Rollup merge of #95376 - WaffleLapkin:drain_keep_rest, r=dtolnay
[rust.git] / src / test / ui / argument-suggestions / too-long.rs
1 struct Qux;
2
3 impl Qux {
4     fn foo(
5         &self,
6         a: i32,
7         b: i32,
8         c: i32,
9         d: i32,
10         e: i32,
11         f: i32,
12         g: i32,
13         h: i32,
14         i: i32,
15         j: i32,
16         k: i32,
17         l: i32,
18     ) {
19     }
20 }
21
22 fn what(
23     qux: &Qux,
24     a: i32,
25     b: i32,
26     c: i32,
27     d: i32,
28     e: i32,
29     f: &i32,
30     g: i32,
31     h: i32,
32     i: i32,
33     j: i32,
34     k: i32,
35     l: i32,
36 ) {
37     qux.foo(a, b, c, d, e, f, g, h, i, j, k, l);
38     //~^ ERROR mismatched types
39 }
40
41 fn main() {}