fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied 2 --> $DIR/missing-unit-argument.rs:11:33 3 | 4LL | let _: Result<(), String> = Ok(); 5 | ^^-- an argument of type `()` is missing 6 | 7note: tuple variant defined here 8 --> $SRC_DIR/core/src/result.rs:LL:COL 9help: provide the argument 10 | 11LL | let _: Result<(), String> = Ok(()); 12 | ~~~~ 13 14error[E0061]: this function takes 2 arguments but 0 arguments were supplied 15 --> $DIR/missing-unit-argument.rs:12:5 16 | 17LL | foo(); 18 | ^^^-- two arguments of type `()` and `()` are missing 19 | 20note: function defined here 21 --> $DIR/missing-unit-argument.rs:1:4 22 | 23LL | fn foo(():(), ():()) {} 24 | ^^^ ----- ----- 25help: provide the arguments 26 | 27LL | foo((), ()); 28 | ~~~~~~~~ 29 30error[E0061]: this function takes 2 arguments but 1 argument was supplied 31 --> $DIR/missing-unit-argument.rs:13:5 32 | 33LL | foo(()); 34 | ^^^---- an argument of type `()` is missing 35 | 36note: function defined here 37 --> $DIR/missing-unit-argument.rs:1:4 38 | 39LL | fn foo(():(), ():()) {} 40 | ^^^ ----- ----- 41help: provide the argument 42 | 43LL | foo((), ()); 44 | ~~~~~~~~ 45 46error[E0061]: this function takes 1 argument but 0 arguments were supplied 47 --> $DIR/missing-unit-argument.rs:14:5 48 | 49LL | bar(); 50 | ^^^-- an argument of type `()` is missing 51 | 52note: function defined here 53 --> $DIR/missing-unit-argument.rs:2:4 54 | 55LL | fn bar(():()) {} 56 | ^^^ ----- 57help: provide the argument 58 | 59LL | bar(()); 60 | ~~~~ 61 62error[E0061]: this method takes 1 argument but 0 arguments were supplied 63 --> $DIR/missing-unit-argument.rs:15:7 64 | 65LL | S.baz(); 66 | ^^^-- an argument of type `()` is missing 67 | 68note: method defined here 69 --> $DIR/missing-unit-argument.rs:6:8 70 | 71LL | fn baz(self, (): ()) { } 72 | ^^^ ------ 73help: provide the argument 74 | 75LL | S.baz(()); 76 | ~~~~ 77 78error[E0061]: this method takes 1 argument but 0 arguments were supplied 79 --> $DIR/missing-unit-argument.rs:16:7 80 | 81LL | S.generic::<()>(); 82 | ^^^^^^^^^^^^^-- an argument of type `()` is missing 83 | 84note: method defined here 85 --> $DIR/missing-unit-argument.rs:7:8 86 | 87LL | fn generic<T>(self, _: T) { } 88 | ^^^^^^^ ---- 89help: provide the argument 90 | 91LL | S.generic::<()>(()); 92 | ~~~~ 93 94error: aborting due to 6 previous errors 95 96For more information about this error, try `rustc --explain E0061`.