rust/tests/ui/builtin-type-shadow.rs
2019-01-08 21:46:39 +01:00

10 lines
151 B
Rust

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