fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0061]: this enum variant takes 1 argument but 2 arguments were supplied 2 --> $DIR/args-instead-of-tuple-errors.rs:6:34 3 | 4LL | let _: Option<(i32, bool)> = Some(1, 2); 5 | ^^^^ - unexpected argument of type `{integer}` 6 | 7note: expected `(i32, bool)`, found integer 8 --> $DIR/args-instead-of-tuple-errors.rs:6:39 9 | 10LL | let _: Option<(i32, bool)> = Some(1, 2); 11 | ^ 12 = note: expected tuple `(i32, bool)` 13 found type `{integer}` 14help: the type constructed contains `{integer}` due to the type of the argument passed 15 --> $DIR/args-instead-of-tuple-errors.rs:6:34 16 | 17LL | let _: Option<(i32, bool)> = Some(1, 2); 18 | ^^^^^-^^^^ 19 | | 20 | this argument influences the type of `Some` 21note: tuple variant defined here 22 --> $SRC_DIR/core/src/option.rs:LL:COL 23help: remove the extra argument 24 | 25LL - let _: Option<(i32, bool)> = Some(1, 2); 26LL + let _: Option<(i32, bool)> = Some(/* (i32, bool) */); 27 | 28 29error[E0061]: this function takes 1 argument but 2 arguments were supplied 30 --> $DIR/args-instead-of-tuple-errors.rs:8:5 31 | 32LL | int_bool(1, 2); 33 | ^^^^^^^^ - unexpected argument of type `{integer}` 34 | 35note: expected `(i32, bool)`, found integer 36 --> $DIR/args-instead-of-tuple-errors.rs:8:14 37 | 38LL | int_bool(1, 2); 39 | ^ 40 = note: expected tuple `(i32, bool)` 41 found type `{integer}` 42note: function defined here 43 --> $DIR/args-instead-of-tuple-errors.rs:21:4 44 | 45LL | fn int_bool(_: (i32, bool)) { 46 | ^^^^^^^^ -------------- 47help: remove the extra argument 48 | 49LL - int_bool(1, 2); 50LL + int_bool(/* (i32, bool) */); 51 | 52 53error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied 54 --> $DIR/args-instead-of-tuple-errors.rs:11:28 55 | 56LL | let _: Option<(i8,)> = Some(); 57 | ^^^^-- an argument of type `(i8,)` is missing 58 | 59note: tuple variant defined here 60 --> $SRC_DIR/core/src/option.rs:LL:COL 61help: provide the argument 62 | 63LL | let _: Option<(i8,)> = Some(/* (i8,) */); 64 | ~~~~~~~~~~~~~ 65 66error[E0308]: mismatched types 67 --> $DIR/args-instead-of-tuple-errors.rs:14:34 68 | 69LL | let _: Option<(i32,)> = Some(5_usize); 70 | ---- ^^^^^^^ expected `(i32,)`, found `usize` 71 | | 72 | arguments to this enum variant are incorrect 73 | 74 = note: expected tuple `(i32,)` 75 found type `usize` 76help: the type constructed contains `usize` due to the type of the argument passed 77 --> $DIR/args-instead-of-tuple-errors.rs:14:29 78 | 79LL | let _: Option<(i32,)> = Some(5_usize); 80 | ^^^^^-------^ 81 | | 82 | this argument influences the type of `Some` 83note: tuple variant defined here 84 --> $SRC_DIR/core/src/option.rs:LL:COL 85 86error[E0308]: mismatched types 87 --> $DIR/args-instead-of-tuple-errors.rs:17:34 88 | 89LL | let _: Option<(i32,)> = Some((5_usize)); 90 | ---- ^^^^^^^^^ expected `(i32,)`, found `usize` 91 | | 92 | arguments to this enum variant are incorrect 93 | 94 = note: expected tuple `(i32,)` 95 found type `usize` 96help: the type constructed contains `usize` due to the type of the argument passed 97 --> $DIR/args-instead-of-tuple-errors.rs:17:29 98 | 99LL | let _: Option<(i32,)> = Some((5_usize)); 100 | ^^^^^---------^ 101 | | 102 | this argument influences the type of `Some` 103note: tuple variant defined here 104 --> $SRC_DIR/core/src/option.rs:LL:COL 105 106error: aborting due to 5 previous errors 107 108Some errors have detailed explanations: E0061, E0308. 109For more information about an error, try `rustc --explain E0061`.