2015-04-13 23:28:18 +05:30
|
|
|
#![feature(plugin, collections)]
|
2014-11-20 12:37:45 +05:30
|
|
|
|
2015-03-02 16:13:44 +05:30
|
|
|
#![plugin(clippy)]
|
2015-04-13 23:28:18 +05:30
|
|
|
#![deny(clippy)]
|
2015-01-10 11:56:58 +05:30
|
|
|
|
2014-11-20 12:37:45 +05:30
|
|
|
extern crate collections;
|
2015-03-02 16:13:44 +05:30
|
|
|
use collections::linked_list::LinkedList;
|
2014-11-20 12:37:45 +05:30
|
|
|
|
2015-04-13 23:28:18 +05:30
|
|
|
pub fn test(foo: LinkedList<u8>) { //~ ERROR I see you're using a LinkedList!
|
2015-01-10 11:56:58 +05:30
|
|
|
println!("{:?}", foo)
|
2014-11-20 12:37:45 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
fn main(){
|
2015-03-02 16:13:44 +05:30
|
|
|
test(LinkedList::new());
|
2014-11-20 12:37:45 +05:30
|
|
|
}
|