]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/issue-87461.stderr
Rollup merge of #106625 - Swatinem:ref/cov6, r=nagisa
[rust.git] / tests / ui / closures / issue-87461.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-87461.rs:10:8
3    |
4 LL |     Ok(())
5    |     -- ^^ expected `u16`, found `()`
6    |     |
7    |     arguments to this enum variant are incorrect
8    |
9 help: the type constructed contains `()` due to the type of the argument passed
10   --> $DIR/issue-87461.rs:10:5
11    |
12 LL |     Ok(())
13    |     ^^^--^
14    |        |
15    |        this argument influences the type of `Ok`
16 note: tuple variant defined here
17   --> $SRC_DIR/core/src/result.rs:LL:COL
18
19 error[E0308]: mismatched types
20   --> $DIR/issue-87461.rs:17:8
21    |
22 LL |     Ok(())
23    |     -- ^^ expected `u16`, found `()`
24    |     |
25    |     arguments to this enum variant are incorrect
26    |
27 help: the type constructed contains `()` due to the type of the argument passed
28   --> $DIR/issue-87461.rs:17:5
29    |
30 LL |     Ok(())
31    |     ^^^--^
32    |        |
33    |        this argument influences the type of `Ok`
34 note: tuple variant defined here
35   --> $SRC_DIR/core/src/result.rs:LL:COL
36
37 error[E0308]: mismatched types
38   --> $DIR/issue-87461.rs:26:12
39    |
40 LL |         Ok(())
41    |         -- ^^ expected `u16`, found `()`
42    |         |
43    |         arguments to this enum variant are incorrect
44    |
45 help: the type constructed contains `()` due to the type of the argument passed
46   --> $DIR/issue-87461.rs:26:9
47    |
48 LL |         Ok(())
49    |         ^^^--^
50    |            |
51    |            this argument influences the type of `Ok`
52 note: tuple variant defined here
53   --> $SRC_DIR/core/src/result.rs:LL:COL
54
55 error: aborting due to 3 previous errors
56
57 For more information about this error, try `rustc --explain E0308`.