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