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 of type `{integer}` unexpected
7 note: expected tuple, found integer
8 --> $DIR/args-instead-of-tuple-errors.rs:6:39
10 LL | let _: Option<(i32, bool)> = Some(1, 2);
12 = note: expected tuple `(i32, bool)`
13 found type `{integer}`
14 help: the type constructed contains `{integer}` due to the type of the argument passed
15 --> $DIR/args-instead-of-tuple-errors.rs:6:34
17 LL | let _: Option<(i32, bool)> = Some(1, 2);
20 | this argument influences the type of `Some`
21 note: tuple variant defined here
22 --> $SRC_DIR/core/src/option.rs:LL:COL
23 help: remove the extra argument
25 LL | let _: Option<(i32, bool)> = Some(/* (i32, bool) */);
28 error[E0061]: this function takes 1 argument but 2 arguments were supplied
29 --> $DIR/args-instead-of-tuple-errors.rs:8:5
32 | ^^^^^^^^ - argument of type `{integer}` unexpected
34 note: expected tuple, found integer
35 --> $DIR/args-instead-of-tuple-errors.rs:8:14
39 = note: expected tuple `(i32, bool)`
40 found type `{integer}`
41 note: function defined here
42 --> $DIR/args-instead-of-tuple-errors.rs:21:4
44 LL | fn int_bool(_: (i32, bool)) {
45 | ^^^^^^^^ --------------
46 help: remove the extra argument
48 LL | int_bool(/* (i32, bool) */);
51 error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied
52 --> $DIR/args-instead-of-tuple-errors.rs:11:28
54 LL | let _: Option<(i8,)> = Some();
55 | ^^^^-- an argument of type `(i8,)` is missing
57 note: tuple variant defined here
58 --> $SRC_DIR/core/src/option.rs:LL:COL
59 help: provide the argument
61 LL | let _: Option<(i8,)> = Some(/* (i8,) */);
64 error[E0308]: mismatched types
65 --> $DIR/args-instead-of-tuple-errors.rs:14:34
67 LL | let _: Option<(i32,)> = Some(5_usize);
68 | ---- ^^^^^^^ expected tuple, found `usize`
70 | arguments to this enum variant are incorrect
72 = note: expected tuple `(i32,)`
74 help: the type constructed contains `usize` due to the type of the argument passed
75 --> $DIR/args-instead-of-tuple-errors.rs:14:29
77 LL | let _: Option<(i32,)> = Some(5_usize);
80 | this argument influences the type of `Some`
81 note: tuple variant defined here
82 --> $SRC_DIR/core/src/option.rs:LL:COL
84 error[E0308]: mismatched types
85 --> $DIR/args-instead-of-tuple-errors.rs:17:34
87 LL | let _: Option<(i32,)> = Some((5_usize));
88 | ---- ^^^^^^^^^ expected tuple, found `usize`
90 | arguments to this enum variant are incorrect
92 = note: expected tuple `(i32,)`
94 help: the type constructed contains `usize` due to the type of the argument passed
95 --> $DIR/args-instead-of-tuple-errors.rs:17:29
97 LL | let _: Option<(i32,)> = Some((5_usize));
100 | this argument influences the type of `Some`
101 note: tuple variant defined here
102 --> $SRC_DIR/core/src/option.rs:LL:COL
104 error: aborting due to 5 previous errors
106 Some errors have detailed explanations: E0061, E0308.
107 For more information about an error, try `rustc --explain E0061`.