1 error[E0061]: this function takes 1 parameter but 0 parameters were supplied
2 --> $DIR/missing-unit-argument.rs:21:33
4 21 | let _: Result<(), String> = Ok();
6 help: expected the unit value `()`; create it with empty parentheses
8 21 | let _: Result<(), String> = Ok(());
11 error[E0061]: this function takes 2 parameters but 0 parameters were supplied
12 --> $DIR/missing-unit-argument.rs:22:5
14 11 | fn foo(():(), ():()) {}
15 | ----------------------- defined here
18 | ^^^^^ expected 2 parameters
20 error[E0061]: this function takes 2 parameters but 1 parameter was supplied
21 --> $DIR/missing-unit-argument.rs:23:9
23 11 | fn foo(():(), ():()) {}
24 | ----------------------- defined here
27 | ^^ expected 2 parameters
29 error[E0061]: this function takes 1 parameter but 0 parameters were supplied
30 --> $DIR/missing-unit-argument.rs:24:5
33 | ---------------- defined here
37 help: expected the unit value `()`; create it with empty parentheses
42 error[E0061]: this function takes 1 parameter but 0 parameters were supplied
43 --> $DIR/missing-unit-argument.rs:25:7
45 16 | fn baz(self, (): ()) { }
46 | ------------------------ defined here
50 help: expected the unit value `()`; create it with empty parentheses
55 error[E0061]: this function takes 1 parameter but 0 parameters were supplied
56 --> $DIR/missing-unit-argument.rs:26:7
58 17 | fn generic<T>(self, _: T) { }
59 | ----------------------------- defined here
61 26 | S.generic::<()>();
63 help: expected the unit value `()`; create it with empty parentheses
65 26 | S.generic::<()>(());
68 error: aborting due to 6 previous errors