@@ -2,7 +2,10 @@ error[E0061]: this enum variant takes 1 argument but 2 arguments were supplied
2
2
--> $DIR/args-instead-of-tuple-errors.rs:6:34
3
3
|
4
4
LL | 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
6
9
|
7
10
note: expected `(i32, bool)`, found integer
8
11
--> $DIR/args-instead-of-tuple-errors.rs:6:39
@@ -20,17 +23,15 @@ LL | let _: Option<(i32, bool)> = Some(1, 2);
20
23
| this argument influences the type of `Some`
21
24
note: tuple variant defined here
22
25
--> $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
- |
28
26
29
27
error[E0061]: this function takes 1 argument but 2 arguments were supplied
30
28
--> $DIR/args-instead-of-tuple-errors.rs:8:5
31
29
|
32
30
LL | int_bool(1, 2);
33
- | ^^^^^^^^ - unexpected argument of type `{integer}`
31
+ | ^^^^^^^^ ---
32
+ | | |
33
+ | | unexpected argument of type `{integer}`
34
+ | help: remove the extra argument
34
35
|
35
36
note: expected `(i32, bool)`, found integer
36
37
--> $DIR/args-instead-of-tuple-errors.rs:8:14
@@ -44,11 +45,6 @@ note: function defined here
44
45
|
45
46
LL | fn int_bool(_: (i32, bool)) {
46
47
| ^^^^^^^^ --------------
47
- help: remove the extra argument
48
- |
49
- LL - int_bool(1, 2);
50
- LL + int_bool(/* (i32, bool) */);
51
- |
52
48
53
49
error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied
54
50
--> $DIR/args-instead-of-tuple-errors.rs:11:28
0 commit comments