]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/multiple_return_terminators.rs
Add #[const_trait] where needed in tests.
[rust.git] / src / test / mir-opt / multiple_return_terminators.rs
1 // compile-flags: -Z mir-opt-level=4
2 // EMIT_MIR multiple_return_terminators.test.MultipleReturnTerminators.diff
3
4 fn test(x: bool) {
5     if x {
6         // test
7     } else {
8         // test
9     }
10 }
11
12 fn main() {
13     test(true)
14 }