10 lines
175 B
Rust
10 lines
175 B
Rust
#![warn(clippy::useless_vec)]
|
|
|
|
fn main() {
|
|
let x = [0u8; 500];
|
|
//~^ ERROR: useless use of `vec!`
|
|
x.contains(&1);
|
|
let y = vec![0u8; 501];
|
|
y.contains(&1);
|
|
}
|