mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 17:07:17 +00:00
15 lines
No EOL
289 B
Rust
15 lines
No EOL
289 B
Rust
#![feature(plugin, collections)]
|
|
|
|
#![plugin(clippy)]
|
|
#![deny(clippy)]
|
|
|
|
extern crate collections;
|
|
use collections::linked_list::LinkedList;
|
|
|
|
pub fn test(foo: LinkedList<u8>) { //~ ERROR I see you're using a LinkedList!
|
|
println!("{:?}", foo)
|
|
}
|
|
|
|
fn main(){
|
|
test(LinkedList::new());
|
|
} |