fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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