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

15 lines
289 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());
}