rust/tests/ui/builtin-type-shadow.rs
2018-08-29 11:08:29 -07:00

12 lines
145 B
Rust

#![feature(tool_lints)]
#![warn(clippy::builtin_type_shadow)]
fn foo<u32>(a: u32) -> u32 {
42
// ^ rustc's type error
}
fn main() {
}