File tree Expand file tree Collapse file tree 3 files changed +4
-39
lines changed Expand file tree Collapse file tree 3 files changed +4
-39
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,8 @@ error[E0317]: if may be missing an else clause
44LL | / if true {
55LL | | return 0;
66LL | | }
7- | |_____^ expected () , found i32
7+ | |_____^ expected `()` , found ` i32`
88 |
9- = note: expected type `()`
10- found type `i32`
119 = note: `if` expressions without `else` evaluate to `()`
1210 = help: consider adding an `else` block that evaluates to the expected type
1311
Original file line number Diff line number Diff line change @@ -33,10 +33,7 @@ error[E0308]: mismatched types
3333LL | extern fn bar() {
3434 | - possibly return type missing here?
3535LL | 0
36- | ^ expected (), found integer
37- |
38- = note: expected type `()`
39- found type `{integer}`
36+ | ^ expected `()`, found integer
4037
4138error[E0308]: mismatched types
4239 --> $DIR/span-preservation.rs:44:5
@@ -52,21 +49,15 @@ error[E0308]: mismatched types
5249LL | extern "Rust" fn rust_abi() {
5350 | - possibly return type missing here?
5451LL | 0
55- | ^ expected (), found integer
56- |
57- = note: expected type `()`
58- found type `{integer}`
52+ | ^ expected `()`, found integer
5953
6054error[E0308]: mismatched types
6155 --> $DIR/span-preservation.rs:54:5
6256 |
6357LL | extern "\x43" fn c_abi_escaped() {
6458 | - possibly return type missing here?
6559LL | 0
66- | ^ expected (), found integer
67- |
68- = note: expected type `()`
69- found type `{integer}`
60+ | ^ expected `()`, found integer
7061
7162error: aborting due to 8 previous errors
7263
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments