]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/as_underscore.rs
Rollup merge of #102092 - kxxt:patch-1, r=joshtriplett
[rust.git] / src / tools / clippy / tests / ui / as_underscore.rs
1 // run-rustfix
2
3 #![warn(clippy::as_underscore)]
4
5 fn foo(_n: usize) {}
6
7 fn main() {
8     let n: u16 = 256;
9     foo(n as _);
10
11     let n = 0_u128;
12     let _n: u8 = n as _;
13 }