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 note: tuple variant defined here
15 --> $SRC_DIR/core/src/option.rs:LL:COL
17 LL | Some(#[stable(feature = "rust1", since = "1.0.0")] T),
19 help: remove the extra argument
21 LL | let _: Option<(i32, bool)> = Some(/* (i32, bool) */);
24 error[E0061]: this function takes 1 argument but 2 arguments were supplied
25 --> $DIR/args-instead-of-tuple-errors.rs:8:5
28 | ^^^^^^^^ - argument of type `{integer}` unexpected
30 note: expected tuple, found integer
31 --> $DIR/args-instead-of-tuple-errors.rs:8:14
35 = note: expected tuple `(i32, bool)`
36 found type `{integer}`
37 note: function defined here
38 --> $DIR/args-instead-of-tuple-errors.rs:21:4
40 LL | fn int_bool(_: (i32, bool)) {
41 | ^^^^^^^^ --------------
42 help: remove the extra argument
44 LL | int_bool(/* (i32, bool) */);
47 error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied
48 --> $DIR/args-instead-of-tuple-errors.rs:11:28
50 LL | let _: Option<(i8,)> = Some();
51 | ^^^^-- an argument of type `(i8,)` is missing
53 note: tuple variant defined here
54 --> $SRC_DIR/core/src/option.rs:LL:COL
56 LL | Some(#[stable(feature = "rust1", since = "1.0.0")] T),
58 help: provide the argument
60 LL | let _: Option<(i8,)> = Some(/* (i8,) */);
63 error[E0308]: mismatched types
64 --> $DIR/args-instead-of-tuple-errors.rs:14:34
66 LL | let _: Option<(i32,)> = Some(5_usize);
67 | ---- ^^^^^^^ expected tuple, found `usize`
69 | arguments to this enum variant are incorrect
71 = note: expected tuple `(i32,)`
73 note: tuple variant defined here
74 --> $SRC_DIR/core/src/option.rs:LL:COL
76 LL | Some(#[stable(feature = "rust1", since = "1.0.0")] T),
79 error[E0308]: mismatched types
80 --> $DIR/args-instead-of-tuple-errors.rs:17:34
82 LL | let _: Option<(i32,)> = Some((5_usize));
83 | ---- ^^^^^^^^^ expected tuple, found `usize`
85 | arguments to this enum variant are incorrect
87 = note: expected tuple `(i32,)`
89 note: tuple variant defined here
90 --> $SRC_DIR/core/src/option.rs:LL:COL
92 LL | Some(#[stable(feature = "rust1", since = "1.0.0")] T),
95 error: aborting due to 5 previous errors
97 Some errors have detailed explanations: E0061, E0308.
98 For more information about an error, try `rustc --explain E0061`.