use next_back() instead of last() on DoubleEndedIterator
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user