]> git.lizzy.rs Git - rust.git/blob - tests/ui/trailing_zeros.rs
Adapt the *.stderr files of the ui-tests to the tool_lints
[rust.git] / tests / ui / trailing_zeros.rs
1 #![feature(stmt_expr_attributes)]
2
3 #![allow(unused_parens)]
4
5 fn main() {
6     let x: i32 = 42;
7     let _ = #[clippy::author] (x & 0b1111 == 0);  // suggest trailing_zeros
8     let _ = x & 0b1_1111 == 0; // suggest trailing_zeros
9     let _ = x & 0b1_1010 == 0; // do not lint
10     let _ = x & 1 == 0; // do not lint
11 }