1 error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied
2 --> $DIR/missing-unit-argument.rs:11:33
4 LL | let _: Result<(), String> = Ok();
5 | ^^-- supplied 0 arguments
7 help: expected the unit value `()`; create it with empty parentheses
9 LL | let _: Result<(), String> = Ok(());
12 error[E0061]: this function takes 2 arguments but 0 arguments were supplied
13 --> $DIR/missing-unit-argument.rs:12:5
16 | ^^^-- supplied 0 arguments
18 | expected 2 arguments
20 note: function defined here
21 --> $DIR/missing-unit-argument.rs:1:4
23 LL | fn foo(():(), ():()) {}
26 error[E0061]: this function takes 2 arguments but 1 argument was supplied
27 --> $DIR/missing-unit-argument.rs:13:5
30 | ^^^ -- supplied 1 argument
32 | expected 2 arguments
34 note: function defined here
35 --> $DIR/missing-unit-argument.rs:1:4
37 LL | fn foo(():(), ():()) {}
40 error[E0061]: this function takes 1 argument but 0 arguments were supplied
41 --> $DIR/missing-unit-argument.rs:14:5
44 | ^^^-- supplied 0 arguments
46 note: function defined here
47 --> $DIR/missing-unit-argument.rs:2:4
51 help: expected the unit value `()`; create it with empty parentheses
56 error[E0061]: this function takes 1 argument but 0 arguments were supplied
57 --> $DIR/missing-unit-argument.rs:15:7
60 | ^^^- supplied 0 arguments
62 note: associated function defined here
63 --> $DIR/missing-unit-argument.rs:6:8
65 LL | fn baz(self, (): ()) { }
67 help: expected the unit value `()`; create it with empty parentheses
72 error[E0061]: this function takes 1 argument but 0 arguments were supplied
73 --> $DIR/missing-unit-argument.rs:16:7
75 LL | S.generic::<()>();
76 | ^^^^^^^------ supplied 0 arguments
78 note: associated function defined here
79 --> $DIR/missing-unit-argument.rs:7:8
81 LL | fn generic<T>(self, _: T) { }
83 help: expected the unit value `()`; create it with empty parentheses
85 LL | S.generic::<()>(());
88 error: aborting due to 6 previous errors
90 For more information about this error, try `rustc --explain E0061`.