]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/not_equal_false.rs
Add #[const_trait] where needed in tests.
[rust.git] / src / test / mir-opt / not_equal_false.rs
1 // unit-test: InstCombine
2 // EMIT_MIR not_equal_false.opt.InstCombine.diff
3
4 fn opt(x: bool) -> u32 {
5     if x != false { 0 } else { 1 }
6 }
7
8 fn main() {
9     opt(false);
10 }