summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-11844.rs
blob: f974a4702960afbcfb3a9fcde7984ddbbb1352e2 (plain)
1
2
3
4
5
6
7
8
fn main() {
    let a = Some(Box::new(1));
    match a {
        Ok(a) => //~ ERROR: mismatched types
            println!("{}",a),
        None => panic!()
    }
}