rust/tests/compile-fail/box_vec.rs
Manish Goregaokar a5c3102594 Use compiletest
2015-04-14 00:20:44 +05:30

12 lines
224 B
Rust

#![feature(plugin)]
#![plugin(clippy)]
#![deny(clippy)]
pub fn test(foo: Box<Vec<bool>>) { //~ ERROR You seem to be trying to use Box<Vec<T>>
println!("{:?}", foo.get(0))
}
fn main(){
test(Box::new(Vec::new()));
}