add DList example
This commit is contained in:
14
examples/dlist.rs
Normal file
14
examples/dlist.rs
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
#![feature(phase)]
|
||||||
|
|
||||||
|
#[phase(plugin)]
|
||||||
|
extern crate rust_clippy;
|
||||||
|
extern crate collections;
|
||||||
|
use collections::dlist::DList;
|
||||||
|
|
||||||
|
pub fn test(foo: DList<uint>) {
|
||||||
|
println!("{}", foo)
|
||||||
|
}
|
||||||
|
|
||||||
|
fn main(){
|
||||||
|
test(DList::new());
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user