]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/struct-enum-wrong-args.stderr
Merge commit 'cd4810de42c57b64b74dae09c530a4c3a41f87b9' into libgccjit-codegen
[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 error[E0061]: this struct takes 1 argument but 2 arguments were supplied
34   --> $DIR/struct-enum-wrong-args.rs:10:13
35    |
36 LL |     let _ = Wrapper(5, 2);
37    |             ^^^^^^^ -  - supplied 2 arguments
38    |             |
39    |             expected 1 argument
40
41 error[E0061]: this struct takes 2 arguments but 0 arguments were supplied
42   --> $DIR/struct-enum-wrong-args.rs:11:13
43    |
44 LL |     let _ = DoubleWrapper();
45    |             ^^^^^^^^^^^^^-- supplied 0 arguments
46    |             |
47    |             expected 2 arguments
48
49 error[E0061]: this struct takes 2 arguments but 1 argument was supplied
50   --> $DIR/struct-enum-wrong-args.rs:12:13
51    |
52 LL |     let _ = DoubleWrapper(5);
53    |             ^^^^^^^^^^^^^ - supplied 1 argument
54    |             |
55    |             expected 2 arguments
56
57 error[E0061]: this struct takes 2 arguments but 3 arguments were supplied
58   --> $DIR/struct-enum-wrong-args.rs:13:13
59    |
60 LL |     let _ = DoubleWrapper(5, 2, 7);
61    |             ^^^^^^^^^^^^^ -  -  - supplied 3 arguments
62    |             |
63    |             expected 2 arguments
64
65 error: aborting due to 8 previous errors
66
67 For more information about this error, try `rustc --explain E0061`.