mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-19 12:05:08 +00:00
707e95f2e5
This gets rid of the match_ty_unwrap function.
16 lines
290 B
Rust
Executable File
16 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());
|
|
}
|