1 #![feature(plugin, collections)]
2 #![feature(associated_type_defaults)]
3 #![feature(associated_consts)]
7 #![allow(dead_code, needless_pass_by_value)]
9 extern crate collections;
10 use collections::linked_list::LinkedList;
13 type Baz = LinkedList<u8>;
14 fn foo(LinkedList<u8>);
15 const BAR : Option<LinkedList<u8>>;
18 // ok, we don’t want to warn for implementations, see #605
19 impl Foo for LinkedList<u8> {
20 fn foo(_: LinkedList<u8>) {}
21 const BAR : Option<LinkedList<u8>> = None;
26 fn foo(_: LinkedList<u8>) {}
29 pub fn test(my_favourite_linked_list: LinkedList<u8>) {
30 println!("{:?}", my_favourite_linked_list)
33 pub fn test_ret() -> Option<LinkedList<u8>> {
38 test(LinkedList::new());