rust/tests/compile-fail/builtin-type-shadow.rs

12 lines
208 B
Rust
Raw Normal View History

2016-08-27 18:52:01 -05:00
#![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() {
}