Point to where missing return type should go
This commit is contained in:
parent
eea26141ec
commit
137b6d0b01
34 changed files with 86 additions and 71 deletions
|
@ -247,7 +247,7 @@ impl<'a> Parser<'a> {
|
|||
)?;
|
||||
FnRetTy::Ty(ty)
|
||||
} else {
|
||||
FnRetTy::Default(self.token.span.shrink_to_lo())
|
||||
FnRetTy::Default(self.prev_token.span.shrink_to_hi())
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue