summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/js-style-comparison-op.rs
blob: c89c1052ed92a471bb69f0afc4d22003b2946c35 (plain)
1
2
3
4
5
6
7
8
// run-rustfix
fn main() {
    if 1 === 1 { //~ ERROR invalid comparison operator `===`
        println!("yup!");
    } else if 1 !== 1 { //~ ERROR invalid comparison operator `!==`
        println!("nope!");
    }
}