mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
12 lines
224 B
Rust
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()));
|
|
} |