]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-if.rs
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[rust.git] / src / test / ui / consts / const-if.rs
1 const _X: i32 = if true { 5 } else { 6 };
2 //~^ ERROR constant contains unimplemented expression type
3 //~| ERROR constant contains unimplemented expression type
4
5 fn main() {}