add DList example
This commit is contained in:
parent
ca7ad5fa80
commit
ae635a60e6
1 changed files with 14 additions and 0 deletions
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());
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue