Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
ddb81ce68047d6383a789c8da514e443faea8349
/
.
/
tests
/
ui
/
structs-enums
/
cross-crate-newtype-struct-pat.rs
blob: e66042ec83cb24d6cc4cc0e19c5ce680d7e2b254 [
file
] [
log
] [
blame
]
//@ 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
)
}
}