]> git.lizzy.rs Git - rust.git/blob - src/test/ui/structs-enums/cross-crate-newtype-struct-pat.rs
Auto merge of #106025 - matthiaskrgr:rollup-vz5rqah, r=matthiaskrgr
[rust.git] / src / test / ui / structs-enums / cross-crate-newtype-struct-pat.rs
1 // run-pass
2 // aux-build:newtype_struct_xc.rs
3
4
5 extern crate newtype_struct_xc;
6
7 pub fn main() {
8     let x = newtype_struct_xc::Au(21);
9     match x {
10         newtype_struct_xc::Au(n) => assert_eq!(n, 21)
11     }
12 }