rust-clippy/examples/box_vec.rs
2015-01-10 11:56:58 +05:30

12 lines
No EOL
168 B
Rust

#![feature(plugin)]
#[plugin]
extern crate clippy;
pub fn test(foo: Box<Vec<bool>>) {
println!("{:?}", foo.get(0))
}
fn main(){
test(Box::new(Vec::new()));
}