Open
Description
In the following program:
const SIZE: usize = 4;
fn _f(arr: [i32; SIZE]) {
for x in arr.iter() {
println!("{}", x);
}
}
fn main() {}
I get a warning about SIZE
being unused:
warning: constant item is never used: `SIZE`
--> src/main.rs:1:1
|
1 | const SIZE: usize = 4;
| ^^^^^^^^^^^^^^^^^^^^^^
|
It seems to me that this warning isn't correct, since SIZE
is used in the signature of _f