rust-clippy/examples/box_vec.rs

12 lines
159 B
Rust
Raw Normal View History

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