rust/tests/ui/builtin-type-shadow.rs
2017-10-03 12:07:24 +02:00

12 lines
114 B
Rust

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