File tree 3 files changed +4
-39
lines changed
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
4
4
LL | / if true {
5
5
LL | | return 0;
6
6
LL | | }
7
- | |_____^ expected () , found i32
7
+ | |_____^ expected `()` , found ` i32`
8
8
|
9
- = note: expected type `()`
10
- found type `i32`
11
9
= note: `if` expressions without `else` evaluate to `()`
12
10
= help: consider adding an `else` block that evaluates to the expected type
13
11
Original file line number Diff line number Diff line change @@ -33,10 +33,7 @@ error[E0308]: mismatched types
33
33
LL | extern fn bar() {
34
34
| - possibly return type missing here?
35
35
LL | 0
36
- | ^ expected (), found integer
37
- |
38
- = note: expected type `()`
39
- found type `{integer}`
36
+ | ^ expected `()`, found integer
40
37
41
38
error[E0308]: mismatched types
42
39
--> $DIR/span-preservation.rs:44:5
@@ -52,21 +49,15 @@ error[E0308]: mismatched types
52
49
LL | extern "Rust" fn rust_abi() {
53
50
| - possibly return type missing here?
54
51
LL | 0
55
- | ^ expected (), found integer
56
- |
57
- = note: expected type `()`
58
- found type `{integer}`
52
+ | ^ expected `()`, found integer
59
53
60
54
error[E0308]: mismatched types
61
55
--> $DIR/span-preservation.rs:54:5
62
56
|
63
57
LL | extern "\x43" fn c_abi_escaped() {
64
58
| - possibly return type missing here?
65
59
LL | 0
66
- | ^ expected (), found integer
67
- |
68
- = note: expected type `()`
69
- found type `{integer}`
60
+ | ^ expected `()`, found integer
70
61
71
62
error: aborting due to 8 previous errors
72
63
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments