]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | // run-pass |
970d7e83 LB |
2 | // aux-build:newtype_struct_xc.rs |
3 | ||
c34b1796 | 4 | |
1a4d82fc | 5 | extern crate newtype_struct_xc; |
223e47cc | 6 | |
1a4d82fc | 7 | pub fn main() { |
970d7e83 LB |
8 | let x = newtype_struct_xc::Au(21); |
9 | match x { | |
10 | newtype_struct_xc::Au(n) => assert_eq!(n, 21) | |
11 | } | |
223e47cc | 12 | } |