summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/integer_division.rs
blob: 800c75257524a542d014192b94c74496cea4f322 (plain)
1
2
3
4
5
6
7
8
9
#![warn(clippy::integer_division)]

fn main() {
    let two = 2;
    let n = 1 / 2;
    let o = 1 / two;
    let p = two / 4;
    let x = 1. / 2.0;
}