summary refs log tree commit diff
path: root/src/test/ui/consts/const-match-pattern-arm.rs
blob: 6ed3ac2356243186a78b8f0f73351e9daf38aed1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#![allow(warnings)]

const x: bool = match Some(true) {
    //~^ ERROR: constant contains unimplemented expression type [E0019]
    Some(value) => true,
    //~^ ERROR: constant contains unimplemented expression type [E0019]
    _ => false
};

const y: bool = {
    match Some(true) {
    //~^ ERROR: constant contains unimplemented expression type [E0019]
        Some(value) => true,
        //~^ ERROR: constant contains unimplemented expression type [E0019]
        _ => false
    }
};

fn main() {}