]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/args-instead-of-tuple-errors.stderr
Move `{core,std}::stream::Stream` to `{core,std}::async_iter::AsyncIterator`.
[rust.git] / src / test / ui / suggestions / args-instead-of-tuple-errors.stderr
1 error[E0061]: this enum variant takes 1 argument but 2 arguments were supplied
2   --> $DIR/args-instead-of-tuple-errors.rs:6:34
3    |
4 LL |     let _: Option<(i32, bool)> = Some(1, 2);
5    |                                  ^^^^ -  - supplied 2 arguments
6    |                                  |
7    |                                  expected 1 argument
8
9 error[E0061]: this function takes 1 argument but 2 arguments were supplied
10   --> $DIR/args-instead-of-tuple-errors.rs:8:5
11    |
12 LL |     int_bool(1, 2);
13    |     ^^^^^^^^ -  - supplied 2 arguments
14    |     |
15    |     expected 1 argument
16    |
17 note: function defined here
18   --> $DIR/args-instead-of-tuple-errors.rs:15:4
19    |
20 LL | fn int_bool(_: (i32, bool)) {
21    |    ^^^^^^^^ --------------
22
23 error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied
24   --> $DIR/args-instead-of-tuple-errors.rs:11:28
25    |
26 LL |     let _: Option<(i8,)> = Some();
27    |                            ^^^^-- supplied 0 arguments
28    |                            |
29    |                            expected 1 argument
30
31 error: aborting due to 3 previous errors
32
33 For more information about this error, try `rustc --explain E0061`.