rust/tests/ui/builtin-type-shadow.rs

12 lines
151 B
Rust
Raw Normal View History

2016-08-27 18:52:01 -05:00
#![feature(plugin)]
#![plugin(clippy)]
#![deny(builtin_type_shadow)]
2017-02-08 07:58:07 -06:00
fn foo<u32>(a: u32) -> u32 {
42
2016-08-27 18:52:01 -05:00
// ^ rustc's type error
}
fn main() {
}