rust-clippy/tests/compile-fail/dlist.rs
Georg Brandl 707e95f2e5 types: use middle::ty types instead of ast types
This gets rid of the match_ty_unwrap function.
2015-08-21 19:21:19 +02:00

15 lines
290 B
Rust
Executable file

#![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());
}