]>
Commit | Line | Data |
---|---|---|
136023e0 | 1 | error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied |
0731742a | 2 | --> $DIR/missing-unit-argument.rs:11:33 |
ea8adc8c | 3 | | |
532ac7d7 | 4 | LL | let _: Result<(), String> = Ok(); |
74b04a01 | 5 | | ^^-- supplied 0 arguments |
04454e1e FG |
6 | | | |
7 | | expected 1 argument | |
ea8adc8c | 8 | |
74b04a01 | 9 | error[E0061]: this function takes 2 arguments but 0 arguments were supplied |
0731742a | 10 | --> $DIR/missing-unit-argument.rs:12:5 |
ea8adc8c | 11 | | |
532ac7d7 | 12 | LL | foo(); |
74b04a01 XL |
13 | | ^^^-- supplied 0 arguments |
14 | | | | |
15 | | expected 2 arguments | |
29967ef6 XL |
16 | | |
17 | note: function defined here | |
18 | --> $DIR/missing-unit-argument.rs:1:4 | |
19 | | | |
20 | LL | fn foo(():(), ():()) {} | |
21 | | ^^^ ----- ----- | |
ea8adc8c | 22 | |
74b04a01 | 23 | error[E0061]: this function takes 2 arguments but 1 argument was supplied |
0731742a | 24 | --> $DIR/missing-unit-argument.rs:13:5 |
ea8adc8c | 25 | | |
532ac7d7 | 26 | LL | foo(()); |
74b04a01 XL |
27 | | ^^^ -- supplied 1 argument |
28 | | | | |
29 | | expected 2 arguments | |
29967ef6 XL |
30 | | |
31 | note: function defined here | |
32 | --> $DIR/missing-unit-argument.rs:1:4 | |
33 | | | |
34 | LL | fn foo(():(), ():()) {} | |
35 | | ^^^ ----- ----- | |
ea8adc8c | 36 | |
74b04a01 | 37 | error[E0061]: this function takes 1 argument but 0 arguments were supplied |
0731742a | 38 | --> $DIR/missing-unit-argument.rs:14:5 |
ea8adc8c | 39 | | |
532ac7d7 | 40 | LL | bar(); |
74b04a01 | 41 | | ^^^-- supplied 0 arguments |
04454e1e FG |
42 | | | |
43 | | expected 1 argument | |
e74abb32 | 44 | | |
29967ef6 XL |
45 | note: function defined here |
46 | --> $DIR/missing-unit-argument.rs:2:4 | |
47 | | | |
48 | LL | fn bar(():()) {} | |
49 | | ^^^ ----- | |
ea8adc8c | 50 | |
74b04a01 | 51 | error[E0061]: this function takes 1 argument but 0 arguments were supplied |
0731742a | 52 | --> $DIR/missing-unit-argument.rs:15:7 |
abe05a73 | 53 | | |
532ac7d7 | 54 | LL | S.baz(); |
74b04a01 | 55 | | ^^^- supplied 0 arguments |
04454e1e FG |
56 | | | |
57 | | expected 1 argument | |
e74abb32 | 58 | | |
29967ef6 XL |
59 | note: associated function defined here |
60 | --> $DIR/missing-unit-argument.rs:6:8 | |
61 | | | |
62 | LL | fn baz(self, (): ()) { } | |
63 | | ^^^ ---- ------ | |
abe05a73 | 64 | |
74b04a01 | 65 | error[E0061]: this function takes 1 argument but 0 arguments were supplied |
0731742a | 66 | --> $DIR/missing-unit-argument.rs:16:7 |
abe05a73 | 67 | | |
532ac7d7 | 68 | LL | S.generic::<()>(); |
74b04a01 | 69 | | ^^^^^^^------ supplied 0 arguments |
04454e1e FG |
70 | | | |
71 | | expected 1 argument | |
e74abb32 | 72 | | |
29967ef6 XL |
73 | note: associated function defined here |
74 | --> $DIR/missing-unit-argument.rs:7:8 | |
75 | | | |
76 | LL | fn generic<T>(self, _: T) { } | |
77 | | ^^^^^^^ ---- ---- | |
abe05a73 XL |
78 | |
79 | error: aborting due to 6 previous errors | |
ea8adc8c | 80 | |
0531ce1d | 81 | For more information about this error, try `rustc --explain E0061`. |