summaryrefslogtreecommitdiffstats
path: root/tests/ui/structs-enums/cross-crate-newtype-struct-pat.rs
blob: eabffc16170cac1eb8a402199484b9e399963ecd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// run-pass
// aux-build:newtype_struct_xc.rs


extern crate newtype_struct_xc;

pub fn main() {
    let x = newtype_struct_xc::Au(21);
    match x {
        newtype_struct_xc::Au(n) => assert_eq!(n, 21)
    }
}