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
10 LL | Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
12 help: provide the argument
14 LL | let _: Result<(), String> = Ok(());
17 error[E0061]: this function takes 2 arguments but 0 arguments were supplied
18 --> $DIR/missing-unit-argument.rs:12:5
21 | ^^^-- two arguments of type `()` and `()` are missing
23 note: function defined here
24 --> $DIR/missing-unit-argument.rs:1:4
26 LL | fn foo(():(), ():()) {}
28 help: provide the arguments
33 error[E0061]: this function takes 2 arguments but 1 argument was supplied
34 --> $DIR/missing-unit-argument.rs:13:5
37 | ^^^---- an argument of type `()` is missing
39 note: function defined here
40 --> $DIR/missing-unit-argument.rs:1:4
42 LL | fn foo(():(), ():()) {}
44 help: provide the argument
49 error[E0061]: this function takes 1 argument but 0 arguments were supplied
50 --> $DIR/missing-unit-argument.rs:14:5
53 | ^^^-- an argument of type `()` is missing
55 note: function defined here
56 --> $DIR/missing-unit-argument.rs:2:4
60 help: provide the argument
65 error[E0061]: this function takes 1 argument but 0 arguments were supplied
66 --> $DIR/missing-unit-argument.rs:15:7
69 | ^^^-- an argument of type `()` is missing
71 note: associated function defined here
72 --> $DIR/missing-unit-argument.rs:6:8
74 LL | fn baz(self, (): ()) { }
76 help: provide the argument
81 error[E0061]: this function takes 1 argument but 0 arguments were supplied
82 --> $DIR/missing-unit-argument.rs:16:7
84 LL | S.generic::<()>();
85 | ^^^^^^^^^^^^^-- an argument of type `()` is missing
87 note: associated function defined here
88 --> $DIR/missing-unit-argument.rs:7:8
90 LL | fn generic<T>(self, _: T) { }
92 help: provide the argument
94 LL | S.generic::<()>(());
97 error: aborting due to 6 previous errors
99 For more information about this error, try `rustc --explain E0061`.