You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
leonardo-m opened this issue
Apr 9, 2017
· 0 comments
Labels
C-bugCategory: Clippy is not doing the correct thingE-hardCall for participation: This a hard problem and requires more experience or effort to work onT-middleType: Probably requires verifiying types
This comes from a code reduction, so it's reasonable in its original context:
#![allow(unused_variables)]fnmain(){constN:usize = 1_000;let data = [0,0,0,0];ifN <= 4{let result = data[N - 1];}}
error: index out of bounds: the len is 4 but the index is 999
--> src/main.rs:6:22
|
6 | let result = data[N - 1];
| ^^^^^^^^^^^
|
= note: #[deny(const_err)] on by default
The text was updated successfully, but these errors were encountered:
mcarton
added
E-hard
Call for participation: This a hard problem and requires more experience or effort to work on
C-bug
Category: Clippy is not doing the correct thing
T-middle
Type: Probably requires verifiying types
labels
Apr 9, 2017
C-bugCategory: Clippy is not doing the correct thingE-hardCall for participation: This a hard problem and requires more experience or effort to work onT-middleType: Probably requires verifiying types
This comes from a code reduction, so it's reasonable in its original context:
The text was updated successfully, but these errors were encountered: