]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-match-pattern-arm.rs
Auto merge of #64546 - weiznich:bugfix/rfc-2451-rerebalance-tests, r=nikomatsakis
[rust.git] / src / test / ui / consts / const-match-pattern-arm.rs
1 #![allow(warnings)]
2
3 const x: bool = match Some(true) {
4     //~^ ERROR: constant contains unimplemented expression type [E0019]
5     Some(value) => true,
6     //~^ ERROR: constant contains unimplemented expression type [E0019]
7     _ => false
8 };
9
10 const y: bool = {
11     match Some(true) {
12     //~^ ERROR: constant contains unimplemented expression type [E0019]
13         Some(value) => true,
14         //~^ ERROR: constant contains unimplemented expression type [E0019]
15         _ => false
16     }
17 };
18
19 fn main() {}