1 error[E0061]: this function takes 1 parameter but 0 parameters were supplied
2 --> $DIR/missing-unit-argument.rs:11:33
4 LL | let _: Result<(), String> = Ok();
7 help: expected the unit value `()`; create it with empty parentheses
9 LL | let _: Result<(), String> = Ok(());
12 error[E0061]: this function takes 2 parameters but 0 parameters were supplied
13 --> $DIR/missing-unit-argument.rs:12:5
15 LL | fn foo(():(), ():()) {}
16 | -------------------- defined here
19 | ^^^^^ expected 2 parameters
21 error[E0061]: this function takes 2 parameters but 1 parameter was supplied
22 --> $DIR/missing-unit-argument.rs:13:5
24 LL | fn foo(():(), ():()) {}
25 | -------------------- defined here
28 | ^^^^^^^ expected 2 parameters
30 error[E0061]: this function takes 1 parameter but 0 parameters were supplied
31 --> $DIR/missing-unit-argument.rs:14:5
34 | ------------- defined here
39 help: expected the unit value `()`; create it with empty parentheses
44 error[E0061]: this function takes 1 parameter but 0 parameters were supplied
45 --> $DIR/missing-unit-argument.rs:15:7
47 LL | fn baz(self, (): ()) { }
48 | -------------------- defined here
53 help: expected the unit value `()`; create it with empty parentheses
58 error[E0061]: this function takes 1 parameter but 0 parameters were supplied
59 --> $DIR/missing-unit-argument.rs:16:7
61 LL | fn generic<T>(self, _: T) { }
62 | ------------------------- defined here
64 LL | S.generic::<()>();
67 help: expected the unit value `()`; create it with empty parentheses
69 LL | S.generic::<()>(());
72 error: aborting due to 6 previous errors
74 For more information about this error, try `rustc --explain E0061`.