mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 03:03:40 +00:00
14 lines
175 B
Rust
14 lines
175 B
Rust
// run-rustfix
|
|
|
|
#![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;
|
|
}
|