]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/erasing_op.rs
Rollup merge of #78760 - jyn514:deny-invalid-codeblocks, r=GuillaumeGomez
[rust.git] / src / tools / clippy / tests / ui / erasing_op.rs
1 #[allow(clippy::no_effect)]
2 #[warn(clippy::erasing_op)]
3 fn main() {
4     let x: u8 = 0;
5
6     x * 0;
7     0 & x;
8     0 / x;
9 }