mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-15 01:17:16 +00:00
12 lines
159 B
Rust
12 lines
159 B
Rust
|
#![warn(clippy::as_underscore)]
|
||
|
|
||
|
fn foo(_n: usize) {}
|
||
|
|
||
|
fn main() {
|
||
|
let n: u16 = 256;
|
||
|
foo(n as usize);
|
||
|
|
||
|
let n = 0_u128;
|
||
|
let _n: u8 = n as u8;
|
||
|
}
|