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