rust/tests/ui-toml/too_large_for_stack/useless_vec.rs

10 lines
179 B
Rust
Raw Normal View History

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