1 error[E0061]: this enum variant takes 1 argument but 2 arguments were supplied
2 --> $DIR/args-instead-of-tuple-errors.rs:6:34
4 LL | let _: Option<(i32, bool)> = Some(1, 2);
5 | ^^^^ - - argument unexpected
7 | expected tuple, found integer
9 = note: expected tuple `(i32, bool)`
10 found type `{integer}`
11 help: remove the extra argument
13 LL | let _: Option<(i32, bool)> = Some({(i32, bool)});
16 error[E0061]: this function takes 1 argument but 2 arguments were supplied
17 --> $DIR/args-instead-of-tuple-errors.rs:8:5
20 | ^^^^^^^^ - - argument unexpected
22 | expected tuple, found integer
24 = note: expected tuple `(i32, bool)`
25 found type `{integer}`
26 note: function defined here
27 --> $DIR/args-instead-of-tuple-errors.rs:21:4
29 LL | fn int_bool(_: (i32, bool)) {
30 | ^^^^^^^^ --------------
31 help: remove the extra argument
33 LL | int_bool({(i32, bool)});
34 | ~~~~~~~~~~~~~~~~~~~~~~~
36 error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied
37 --> $DIR/args-instead-of-tuple-errors.rs:11:28
39 LL | let _: Option<(i8,)> = Some();
40 | ^^^^-- an argument of type `(i8,)` is missing
42 help: provide the argument
44 LL | let _: Option<(i8,)> = Some({(i8,)});
47 error[E0308]: mismatched types
48 --> $DIR/args-instead-of-tuple-errors.rs:14:34
50 LL | let _: Option<(i32,)> = Some(5_usize);
51 | ---- ^^^^^^^ expected tuple, found `usize`
53 | arguments to this enum variant are incorrect
55 = note: expected tuple `(i32,)`
58 error[E0308]: mismatched types
59 --> $DIR/args-instead-of-tuple-errors.rs:17:34
61 LL | let _: Option<(i32,)> = Some((5_usize));
62 | ---- ^^^^^^^^^ expected tuple, found `usize`
64 | arguments to this enum variant are incorrect
66 = note: expected tuple `(i32,)`
69 error: aborting due to 5 previous errors
71 Some errors have detailed explanations: E0061, E0308.
72 For more information about an error, try `rustc --explain E0061`.