]> git.lizzy.rs Git - rust.git/blob - tests/ui/erasing_op.rs
Merge pull request #2136 from ykrivopalov/identity_op_fixing
[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 }