]> git.lizzy.rs Git - rust.git/blob - tests/ui/erasing_op.rs
Adapt the *.stderr files of the ui-tests to the tool_lints
[rust.git] / tests / ui / erasing_op.rs
1 #![feature(tool_lints)]
2
3
4 #[allow(clippy::no_effect)]
5 #[warn(clippy::erasing_op)]
6 fn main() {
7     let x: u8 = 0;
8
9     x * 0;
10     0 & x;
11     0 / x;
12 }