rust/examples/box_vec.rs

12 lines
164 B
Rust
Raw Normal View History

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