mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 12:39:31 +03:00
unwrap -> expect
This commit is contained in:
@@ -390,7 +390,7 @@ fn error_negative_bounds(
|
||||
negative_bounds: Vec<Span>,
|
||||
) {
|
||||
let negative_bounds_len = negative_bounds.len();
|
||||
let last_span = *negative_bounds.last().unwrap();
|
||||
let last_span = *negative_bounds.last().expect("no negative bounds, but still error?");
|
||||
let mut err = self.struct_span_err(
|
||||
negative_bounds,
|
||||
"negative bounds are not supported",
|
||||
|
||||
Reference in New Issue
Block a user