fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
1error[E0061]: this function takes 1 parameter but 0 parameters were supplied 2 --> $DIR/missing-unit-argument.rs:11:33 3 | 4LL | let _: Result<(), String> = Ok(); 5 | ^^^^ 6 | 7help: expected the unit value `()`; create it with empty parentheses 8 | 9LL | let _: Result<(), String> = Ok(()); 10 | ^^ 11 12error[E0061]: this function takes 2 parameters but 0 parameters were supplied 13 --> $DIR/missing-unit-argument.rs:12:5 14 | 15LL | fn foo(():(), ():()) {} 16 | -------------------- defined here 17... 18LL | foo(); 19 | ^^^^^ expected 2 parameters 20 21error[E0061]: this function takes 2 parameters but 1 parameter was supplied 22 --> $DIR/missing-unit-argument.rs:13:5 23 | 24LL | fn foo(():(), ():()) {} 25 | -------------------- defined here 26... 27LL | foo(()); 28 | ^^^^^^^ expected 2 parameters 29 30error[E0061]: this function takes 1 parameter but 0 parameters were supplied 31 --> $DIR/missing-unit-argument.rs:14:5 32 | 33LL | fn bar(():()) {} 34 | ------------- defined here 35... 36LL | bar(); 37 | ^^^^^ 38 | 39help: expected the unit value `()`; create it with empty parentheses 40 | 41LL | bar(()); 42 | ^^ 43 44error[E0061]: this function takes 1 parameter but 0 parameters were supplied 45 --> $DIR/missing-unit-argument.rs:15:7 46 | 47LL | fn baz(self, (): ()) { } 48 | -------------------- defined here 49... 50LL | S.baz(); 51 | ^^^ 52 | 53help: expected the unit value `()`; create it with empty parentheses 54 | 55LL | S.baz(()); 56 | ^^ 57 58error[E0061]: this function takes 1 parameter but 0 parameters were supplied 59 --> $DIR/missing-unit-argument.rs:16:7 60 | 61LL | fn generic<T>(self, _: T) { } 62 | ------------------------- defined here 63... 64LL | S.generic::<()>(); 65 | ^^^^^^^ 66 | 67help: expected the unit value `()`; create it with empty parentheses 68 | 69LL | S.generic::<()>(()); 70 | ^^ 71 72error: aborting due to 6 previous errors 73 74For more information about this error, try `rustc --explain E0061`.