]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/js-style-comparison-op.fixed
Rollup merge of #106869 - notriddle:notriddle/item-decl-pre-rust, r=GuillaumeGomez
[rust.git] / tests / ui / suggestions / js-style-comparison-op.fixed
1 // run-rustfix
2 fn main() {
3     if 1 == 1 { //~ ERROR invalid comparison operator `===`
4         println!("yup!");
5     } else if 1 != 1 { //~ ERROR invalid comparison operator `!==`
6         println!("nope!");
7     }
8 }