Closed
Description
#60159 (comment), follow up to #60159.
When encountering cases like let f = [0_usize; -1_isize];
, do not suggest (-1isize).try_into().unwrap()
as we can verify that this will always panic.
#60159 (comment), follow up to #60159.
When encountering cases like let f = [0_usize; -1_isize];
, do not suggest (-1isize).try_into().unwrap()
as we can verify that this will always panic.