mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
add DList example
This commit is contained in:
parent
ca7ad5fa80
commit
ae635a60e6
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…
Reference in New Issue
Block a user