]> git.lizzy.rs Git - rust.git/blob - tests/ui/erasing_op.rs
Merge branch 'master' of github.com:rust-lang-nursery/rust-clippy
[rust.git] / tests / ui / erasing_op.rs
1
2
3
4 #[allow(no_effect)]
5 #[warn(erasing_op)]
6 fn main() {
7     let x: u8 = 0;
8
9     x * 0;
10     0 & x;
11     0 / x;
12 }