use next_back() instead of last() on DoubleEndedIterator
This commit is contained in:
parent
2b285cd5f0
commit
dcf6137b5c
2 changed files with 2 additions and 2 deletions
|
@ -2107,7 +2107,7 @@ impl<'a> Parser<'a> {
|
|||
ast::GenericBound::Trait(poly) => Some(poly),
|
||||
_ => None,
|
||||
})
|
||||
.last()
|
||||
.next_back()
|
||||
{
|
||||
err.span_suggestion_verbose(
|
||||
poly.span.shrink_to_hi(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue