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

12 lines
114 B
Rust
Raw Normal View History

2017-09-18 12:47:33 +02:00
#![warn(builtin_type_shadow)]
2016-08-28 01:52:01 +02:00
2017-02-08 14:58:07 +01:00
fn foo<u32>(a: u32) -> u32 {
42
2016-08-28 01:52:01 +02:00
// ^ rustc's type error
}
fn main() {
}