Sign in
rust
/
rust
/
548b5d2406cb0a79d67e745dc3bf45e7eddbb607
/
.
/
tests
/
ui
/
type
/
unit-type-basic-usages.rs
blob: c3ee8067f591844c16713e4c647a747f1848e791 [
file
] [
log
] [
blame
]
//! Checks the basic usage of unit type
//@ run-pass
fn
f
(
u
:
())
{
u
}
pub
fn
main
()
{
let
u1
:
()
=
();
let
mut
_u2
:
()
=
f
(
u1
);
_u2
=
();
()
}