1 error[E0061]: this enum variant takes 1 argument but 2 arguments were supplied
2 --> $DIR/args-instead-of-tuple.rs:7:36
4 LL | let _: Result<(i32, i8), ()> = Ok(1, 2);
5 | ^^ - - supplied 2 arguments
7 help: use parentheses to construct a tuple
9 LL | let _: Result<(i32, i8), ()> = Ok((1, 2));
12 error[E0061]: this enum variant takes 1 argument but 3 arguments were supplied
13 --> $DIR/args-instead-of-tuple.rs:9:46
15 LL | let _: Option<(i32, i8, &'static str)> = Some(1, 2, "hi");
16 | ^^^^ - - ---- supplied 3 arguments
18 help: use parentheses to construct a tuple
20 LL | let _: Option<(i32, i8, &'static str)> = Some((1, 2, "hi"));
23 error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied
24 --> $DIR/args-instead-of-tuple.rs:11:25
26 LL | let _: Option<()> = Some();
27 | ^^^^-- supplied 0 arguments
29 help: expected the unit value `()`; create it with empty parentheses
31 LL | let _: Option<()> = Some(());
34 error[E0061]: this function takes 1 argument but 2 arguments were supplied
35 --> $DIR/args-instead-of-tuple.rs:14:5
38 | ^^^^^^^^ - - supplied 2 arguments
40 note: function defined here
41 --> $DIR/args-instead-of-tuple.rs:19:4
43 LL | fn two_ints(_: (i32, i32)) {
44 | ^^^^^^^^ -------------
45 help: use parentheses to construct a tuple
47 LL | two_ints((1, 2));
50 error[E0061]: this function takes 1 argument but 2 arguments were supplied
51 --> $DIR/args-instead-of-tuple.rs:16:5
53 LL | with_generic(3, 4);
54 | ^^^^^^^^^^^^ - - supplied 2 arguments
56 note: function defined here
57 --> $DIR/args-instead-of-tuple.rs:22:4
59 LL | fn with_generic<T: Copy + Send>((a, b): (i32, T)) {
60 | ^^^^^^^^^^^^ ----------------
61 help: use parentheses to construct a tuple
63 LL | with_generic((3, 4));
66 error[E0061]: this function takes 1 argument but 2 arguments were supplied
67 --> $DIR/args-instead-of-tuple.rs:25:9
69 LL | with_generic(a, b);
70 | ^^^^^^^^^^^^ - - supplied 2 arguments
72 note: function defined here
73 --> $DIR/args-instead-of-tuple.rs:22:4
75 LL | fn with_generic<T: Copy + Send>((a, b): (i32, T)) {
76 | ^^^^^^^^^^^^ ----------------
77 help: use parentheses to construct a tuple
79 LL | with_generic((a, b));
82 error: aborting due to 6 previous errors
84 For more information about this error, try `rustc --explain E0061`.