rust-clippy/examples/box_vec.rs

12 lines
164 B
Rust
Raw Normal View History

2014-11-19 08:57:34 +00:00
#![feature(phase)]
#[phase(plugin)]
extern crate rust_clippy;
pub fn test(foo: Box<Vec<uint>>) {
println!("{}", foo)
}
fn main(){
test(box Vec::new());
}