]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/struct-enum-wrong-args.stderr
Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup
[rust.git] / src / test / ui / typeck / struct-enum-wrong-args.stderr
1 error[E0061]: this enum variant takes 1 argument but 2 arguments were supplied
2   --> $DIR/struct-enum-wrong-args.rs:6:13
3    |
4 LL |     let _ = Some(3, 2);
5    |             ^^^^ -  - supplied 2 arguments
6    |             |
7    |             expected 1 argument
8
9 error[E0061]: this enum variant takes 1 argument but 3 arguments were supplied
10   --> $DIR/struct-enum-wrong-args.rs:7:13
11    |
12 LL |     let _ = Ok(3, 6, 2);
13    |             ^^ -  -  - supplied 3 arguments
14    |             |
15    |             expected 1 argument
16
17 error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied
18   --> $DIR/struct-enum-wrong-args.rs:8:13
19    |
20 LL |     let _ = Ok();
21    |             ^^-- supplied 0 arguments
22    |             |
23    |             expected 1 argument
24
25 error[E0061]: this struct takes 1 argument but 0 arguments were supplied
26   --> $DIR/struct-enum-wrong-args.rs:9:13
27    |
28 LL |     let _ = Wrapper();
29    |             ^^^^^^^-- supplied 0 arguments
30    |             |
31    |             expected 1 argument
32    |
33 note: tuple struct defined here
34   --> $DIR/struct-enum-wrong-args.rs:2:8
35    |
36 LL | struct Wrapper(i32);
37    |        ^^^^^^^
38
39 error[E0061]: this struct takes 1 argument but 2 arguments were supplied
40   --> $DIR/struct-enum-wrong-args.rs:10:13
41    |
42 LL |     let _ = Wrapper(5, 2);
43    |             ^^^^^^^ -  - supplied 2 arguments
44    |             |
45    |             expected 1 argument
46    |
47 note: tuple struct defined here
48   --> $DIR/struct-enum-wrong-args.rs:2:8
49    |
50 LL | struct Wrapper(i32);
51    |        ^^^^^^^
52
53 error[E0061]: this struct takes 2 arguments but 0 arguments were supplied
54   --> $DIR/struct-enum-wrong-args.rs:11:13
55    |
56 LL |     let _ = DoubleWrapper();
57    |             ^^^^^^^^^^^^^-- supplied 0 arguments
58    |             |
59    |             expected 2 arguments
60    |
61 note: tuple struct defined here
62   --> $DIR/struct-enum-wrong-args.rs:3:8
63    |
64 LL | struct DoubleWrapper(i32, i32);
65    |        ^^^^^^^^^^^^^
66
67 error[E0061]: this struct takes 2 arguments but 1 argument was supplied
68   --> $DIR/struct-enum-wrong-args.rs:12:13
69    |
70 LL |     let _ = DoubleWrapper(5);
71    |             ^^^^^^^^^^^^^ - supplied 1 argument
72    |             |
73    |             expected 2 arguments
74    |
75 note: tuple struct defined here
76   --> $DIR/struct-enum-wrong-args.rs:3:8
77    |
78 LL | struct DoubleWrapper(i32, i32);
79    |        ^^^^^^^^^^^^^
80
81 error[E0061]: this struct takes 2 arguments but 3 arguments were supplied
82   --> $DIR/struct-enum-wrong-args.rs:13:13
83    |
84 LL |     let _ = DoubleWrapper(5, 2, 7);
85    |             ^^^^^^^^^^^^^ -  -  - supplied 3 arguments
86    |             |
87    |             expected 2 arguments
88    |
89 note: tuple struct defined here
90   --> $DIR/struct-enum-wrong-args.rs:3:8
91    |
92 LL | struct DoubleWrapper(i32, i32);
93    |        ^^^^^^^^^^^^^
94
95 error: aborting due to 8 previous errors
96
97 For more information about this error, try `rustc --explain E0061`.