@@ -5,7 +5,7 @@ LL | macro_rules! test { () => { fn foo() -> i32 { 1; } } }
5
5
| --- ^^^ - help: consider removing this semicolon
6
6
| | |
7
7
| | expected i32, found ()
8
- | this function implicitly returns `()` as its body has no tail or `return` expression
8
+ | implicitly returns `()` as its body has no tail or `return` expression
9
9
...
10
10
LL | test!();
11
11
| -------- in this macro invocation
@@ -19,7 +19,7 @@ error[E0308]: mismatched types
19
19
LL | fn no_return() -> i32 {}
20
20
| --------- ^^^ expected i32, found ()
21
21
| |
22
- | this function implicitly returns `()` as its body has no tail or `return` expression
22
+ | implicitly returns `()` as its body has no tail or `return` expression
23
23
|
24
24
= note: expected type `i32`
25
25
found type `()`
@@ -30,7 +30,7 @@ error[E0308]: mismatched types
30
30
LL | fn bar(x: u32) -> u32 {
31
31
| --- ^^^ expected u32, found ()
32
32
| |
33
- | this function implicitly returns `()` as its body has no tail or `return` expression
33
+ | implicitly returns `()` as its body has no tail or `return` expression
34
34
LL | x * 2;
35
35
| - help: consider removing this semicolon
36
36
|
@@ -43,7 +43,7 @@ error[E0308]: mismatched types
43
43
LL | fn baz(x: u64) -> u32 {
44
44
| --- ^^^ expected u32, found ()
45
45
| |
46
- | this function implicitly returns `()` as its body has no tail or `return` expression
46
+ | implicitly returns `()` as its body has no tail or `return` expression
47
47
|
48
48
= note: expected type `u32`
49
49
found type `()`
0 commit comments