clippy 0.0.113

A bunch of helpful lints to avoid common pitfalls in Rust
1
2
3
4
5
6
7
8
9
10
11
#![feature(plugin)]
#![plugin(clippy)]
#![deny(builtin_type_shadow)]

fn foo<u32>(a: u32) -> u32 { //~ERROR shadows the built-in type `u32`
    42  //~ERROR E0308
    // ^ rustc's type error
}

fn main() {
}