1 2 3 4 5 6 7 8 9 10 11 12 13 14
#![feature(plugin, collections)] #![plugin(clippy)] #![deny(clippy)] extern crate collections; use collections::linked_list::LinkedList; pub fn test(_: LinkedList<u8>) { //~ ERROR I see you're using a LinkedList! } fn main(){ test(LinkedList::new()); }