12 lines
145 B
Rust
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() {
|
|
}
|