Sign in
fuchsia
/
third_party
/
rust
/
541ad45a83482e3132c75fbbc55fb2afc03a6031
/
.
/
src
/
test
/
run-pass
/
newtype-temporary.rs
blob: f8d6cde2aa8ccec4287065db84ee2dcde1645985 [
file
] [
log
] [
blame
]
#[
derive
(
PartialEq
,
Debug
)]
struct
Foo
(
usize
);
fn
foo
()
->
Foo
{
Foo
(
42
)
}
pub
fn
main
()
{
assert_eq
!(
foo
(),
Foo
(
42
));
}