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