1 error[E0308]: mismatched types
2 --> $DIR/issue-87461.rs:10:8
5 | -- ^^ expected `u16`, found `()`
7 | arguments to this enum variant are incorrect
9 help: the type constructed contains `()` due to the type of the argument passed
10 --> $DIR/issue-87461.rs:10:5
15 | this argument influences the type of `Ok`
16 note: tuple variant defined here
17 --> $SRC_DIR/core/src/result.rs:LL:COL
19 error[E0308]: mismatched types
20 --> $DIR/issue-87461.rs:17:8
23 | -- ^^ expected `u16`, found `()`
25 | arguments to this enum variant are incorrect
27 help: the type constructed contains `()` due to the type of the argument passed
28 --> $DIR/issue-87461.rs:17:5
33 | this argument influences the type of `Ok`
34 note: tuple variant defined here
35 --> $SRC_DIR/core/src/result.rs:LL:COL
37 error[E0308]: mismatched types
38 --> $DIR/issue-87461.rs:26:12
41 | -- ^^ expected `u16`, found `()`
43 | arguments to this enum variant are incorrect
45 help: the type constructed contains `()` due to the type of the argument passed
46 --> $DIR/issue-87461.rs:26:9
51 | this argument influences the type of `Ok`
52 note: tuple variant defined here
53 --> $SRC_DIR/core/src/result.rs:LL:COL
55 error: aborting due to 3 previous errors
57 For more information about this error, try `rustc --explain E0308`.