]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/as_underscore.fixed
Rollup merge of #102581 - jyn514:src-detection, r=Mark-Simulacrum
[rust.git] / src / tools / clippy / tests / ui / as_underscore.fixed
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 usize);
10
11     let n = 0_u128;
12     let _n: u8 = n as u8;
13 }