Fixed missing whitespace on some elaborated types.
This commit is contained in:
parent
5282d7d060
commit
055aaaf765
3 changed files with 6 additions and 6 deletions
|
|
@ -11,7 +11,7 @@ LL | invoke(&x, |a, b| if a > b { a } else { b }); //~ ERROR E0495
|
|||
| ----------^^^^^-----------------
|
||||
| | | |
|
||||
| | | free region requires that `'1` must outlive `'2`
|
||||
| | has type `&'1i32`
|
||||
| | has type `&'1 i32`
|
||||
| lifetime `'2` appears in return type
|
||||
|
||||
error: aborting due to previous error
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ error: unsatisfied lifetime constraints
|
|||
LL | foo(|a, b| b)
|
||||
| - - ^ closure was supposed to return data with lifetime `'1` but it is returning data with lifetime `'2`
|
||||
| | |
|
||||
| | has type `&'1u32`
|
||||
| has type `&'2u32`
|
||||
| | has type `&'1 u32`
|
||||
| has type `&'2 u32`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue