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);
7 note: tuple variant defined here
8 --> $SRC_DIR/core/src/result.rs:LL:COL
10 LL | Ok(#[stable(feature = "rust1", since = "1.0.0")] T),
12 help: wrap these arguments in parentheses to construct a tuple
14 LL | let _: Result<(i32, i8), ()> = Ok((1, 2));
17 error[E0061]: this enum variant takes 1 argument but 3 arguments were supplied
18 --> $DIR/args-instead-of-tuple.rs:9:46
20 LL | let _: Option<(i32, i8, &'static str)> = Some(1, 2, "hi");
23 note: tuple variant defined here
24 --> $SRC_DIR/core/src/option.rs:LL:COL
26 LL | Some(#[stable(feature = "rust1", since = "1.0.0")] T),
28 help: wrap these arguments in parentheses to construct a tuple
30 LL | let _: Option<(i32, i8, &'static str)> = Some((1, 2, "hi"));
33 error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied
34 --> $DIR/args-instead-of-tuple.rs:11:25
36 LL | let _: Option<()> = Some();
37 | ^^^^-- an argument of type `()` is missing
39 note: tuple variant defined here
40 --> $SRC_DIR/core/src/option.rs:LL:COL
42 LL | Some(#[stable(feature = "rust1", since = "1.0.0")] T),
44 help: provide the argument
46 LL | let _: Option<()> = Some(());
49 error[E0308]: mismatched types
50 --> $DIR/args-instead-of-tuple.rs:14:34
52 LL | let _: Option<(i32,)> = Some(3);
53 | ---- ^ expected tuple, found integer
55 | arguments to this enum variant are incorrect
57 = note: expected tuple `(i32,)`
58 found type `{integer}`
59 note: tuple variant defined here
60 --> $SRC_DIR/core/src/option.rs:LL:COL
62 LL | Some(#[stable(feature = "rust1", since = "1.0.0")] T),
64 help: use a trailing comma to create a tuple with one element
66 LL | let _: Option<(i32,)> = Some((3,));
69 error[E0308]: mismatched types
70 --> $DIR/args-instead-of-tuple.rs:17:34
72 LL | let _: Option<(i32,)> = Some((3));
73 | ---- ^^^ expected tuple, found integer
75 | arguments to this enum variant are incorrect
77 = note: expected tuple `(i32,)`
78 found type `{integer}`
79 note: tuple variant defined here
80 --> $SRC_DIR/core/src/option.rs:LL:COL
82 LL | Some(#[stable(feature = "rust1", since = "1.0.0")] T),
84 help: use a trailing comma to create a tuple with one element
86 LL | let _: Option<(i32,)> = Some((3,));
89 error[E0061]: this function takes 1 argument but 2 arguments were supplied
90 --> $DIR/args-instead-of-tuple.rs:20:5
95 note: function defined here
96 --> $DIR/args-instead-of-tuple.rs:25:4
98 LL | fn two_ints(_: (i32, i32)) {
99 | ^^^^^^^^ -------------
100 help: wrap these arguments in parentheses to construct a tuple
102 LL | two_ints((1, 2));
105 error[E0061]: this function takes 1 argument but 2 arguments were supplied
106 --> $DIR/args-instead-of-tuple.rs:22:5
108 LL | with_generic(3, 4);
111 note: function defined here
112 --> $DIR/args-instead-of-tuple.rs:28:4
114 LL | fn with_generic<T: Copy + Send>((a, b): (i32, T)) {
115 | ^^^^^^^^^^^^ ----------------
116 help: wrap these arguments in parentheses to construct a tuple
118 LL | with_generic((3, 4));
121 error[E0061]: this function takes 1 argument but 2 arguments were supplied
122 --> $DIR/args-instead-of-tuple.rs:31:9
124 LL | with_generic(a, b);
127 note: function defined here
128 --> $DIR/args-instead-of-tuple.rs:28:4
130 LL | fn with_generic<T: Copy + Send>((a, b): (i32, T)) {
131 | ^^^^^^^^^^^^ ----------------
132 help: wrap these arguments in parentheses to construct a tuple
134 LL | with_generic((a, b));
137 error: aborting due to 8 previous errors
139 Some errors have detailed explanations: E0061, E0308.
140 For more information about an error, try `rustc --explain E0061`.