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 | ^^-- an argument of type `()` is missing
7 note: tuple variant defined here
8 --> $SRC_DIR/core/src/result.rs:LL:COL
9 help: provide the argument
11 LL | let _: Result<(), String> = Ok(());
14 error[E0061]: this function takes 2 arguments but 0 arguments were supplied
15 --> $DIR/missing-unit-argument.rs:12:5
18 | ^^^-- two arguments of type `()` and `()` are missing
20 note: function defined here
21 --> $DIR/missing-unit-argument.rs:1:4
23 LL | fn foo(():(), ():()) {}
25 help: provide the arguments
30 error[E0061]: this function takes 2 arguments but 1 argument was supplied
31 --> $DIR/missing-unit-argument.rs:13:5
34 | ^^^---- an argument of type `()` is missing
36 note: function defined here
37 --> $DIR/missing-unit-argument.rs:1:4
39 LL | fn foo(():(), ():()) {}
41 help: provide the argument
46 error[E0061]: this function takes 1 argument but 0 arguments were supplied
47 --> $DIR/missing-unit-argument.rs:14:5
50 | ^^^-- an argument of type `()` is missing
52 note: function defined here
53 --> $DIR/missing-unit-argument.rs:2:4
57 help: provide the argument
62 error[E0061]: this method takes 1 argument but 0 arguments were supplied
63 --> $DIR/missing-unit-argument.rs:15:7
66 | ^^^-- an argument of type `()` is missing
68 note: associated function defined here
69 --> $DIR/missing-unit-argument.rs:6:8
71 LL | fn baz(self, (): ()) { }
73 help: provide the argument
78 error[E0061]: this method takes 1 argument but 0 arguments were supplied
79 --> $DIR/missing-unit-argument.rs:16:7
81 LL | S.generic::<()>();
82 | ^^^^^^^^^^^^^-- an argument of type `()` is missing
84 note: associated function defined here
85 --> $DIR/missing-unit-argument.rs:7:8
87 LL | fn generic<T>(self, _: T) { }
89 help: provide the argument
91 LL | S.generic::<()>(());
94 error: aborting due to 6 previous errors
96 For more information about this error, try `rustc --explain E0061`.