]> git.lizzy.rs Git - rust.git/blob - tests/ui/dlist.rs
remove all //~ from tests
[rust.git] / tests / ui / dlist.rs
1 #![feature(plugin, collections)]
2 #![feature(associated_type_defaults)]
3 #![feature(associated_consts)]
4
5 #![plugin(clippy)]
6 #![deny(clippy)]
7 #![allow(dead_code)]
8
9 extern crate collections;
10 use collections::linked_list::LinkedList;
11
12 trait Foo {
13     type Baz = LinkedList<u8>;
14     fn foo(LinkedList<u8>);
15     const BAR : Option<LinkedList<u8>>;
16 }
17
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;
22 }
23
24 struct Bar;
25 impl Bar {
26     fn foo(_: LinkedList<u8>) {}
27 }
28
29 pub fn test(my_favourite_linked_list: LinkedList<u8>) {
30     println!("{:?}", my_favourite_linked_list)
31 }
32
33 pub fn test_ret() -> Option<LinkedList<u8>> {
34     unimplemented!();
35 }
36
37 fn main(){
38     test(LinkedList::new());
39 }