mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-16 14:08:37 +00:00
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
Reference in a new issue