about summary refs log tree commit diff
path: root/tests/ui/structs-enums/cross-crate-newtype-struct-pat.rs
blob: e66042ec83cb24d6cc4cc0e19c5ce680d7e2b254 (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)
    }
}