@@ -2,7 +2,10 @@ error[E0061]: this enum variant takes 1 argument but 2 arguments were supplied
22 --> $DIR/args-instead-of-tuple-errors.rs:6:34
33 |
44LL | let _: Option<(i32, bool)> = Some(1, 2);
5- | ^^^^ - unexpected argument of type `{integer}`
5+ | ^^^^ ---
6+ | | |
7+ | | unexpected argument of type `{integer}`
8+ | help: remove the extra argument
69 |
710note: expected `(i32, bool)`, found integer
811 --> $DIR/args-instead-of-tuple-errors.rs:6:39
@@ -20,17 +23,15 @@ LL | let _: Option<(i32, bool)> = Some(1, 2);
2023 | this argument influences the type of `Some`
2124note: tuple variant defined here
2225 --> $SRC_DIR/core/src/option.rs:LL:COL
23- help: remove the extra argument
24- |
25- LL - let _: Option<(i32, bool)> = Some(1, 2);
26- LL + let _: Option<(i32, bool)> = Some(/* (i32, bool) */);
27- |
2826
2927error[E0061]: this function takes 1 argument but 2 arguments were supplied
3028 --> $DIR/args-instead-of-tuple-errors.rs:8:5
3129 |
3230LL | int_bool(1, 2);
33- | ^^^^^^^^ - unexpected argument of type `{integer}`
31+ | ^^^^^^^^ ---
32+ | | |
33+ | | unexpected argument of type `{integer}`
34+ | help: remove the extra argument
3435 |
3536note: expected `(i32, bool)`, found integer
3637 --> $DIR/args-instead-of-tuple-errors.rs:8:14
@@ -44,11 +45,6 @@ note: function defined here
4445 |
4546LL | fn int_bool(_: (i32, bool)) {
4647 | ^^^^^^^^ --------------
47- help: remove the extra argument
48- |
49- LL - int_bool(1, 2);
50- LL + int_bool(/* (i32, bool) */);
51- |
5248
5349error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied
5450 --> $DIR/args-instead-of-tuple-errors.rs:11:28
0 commit comments