rust/tests/compile-fail/dlist.rs
2015-11-09 08:49:20 +05:30

16 lines
290 B
Rust

#![feature(plugin, collections)]
#![plugin(clippy)]
#![deny(clippy)]
extern crate collections;
use collections::linked_list::LinkedList;
pub fn test(foo: LinkedList<u8>) { //~ ERROR I see you're using a LinkedList!
println!("{:?}", foo)
}
fn main(){
test(LinkedList::new());
}