Sign in
fuchsia
/
third_party
/
rust
/
fad27df3e7aafbd83341df34d397fe4015f69679
/
.
/
src
/
test
/
run-pass
/
one-tuple.rs
blob: fa54f9529382e6fee9ca6017931a534d624869f8 [
file
] [
log
] [
blame
]
// Why one-tuples? Because macros.
pub
fn
main
()
{
match
(
'c'
,)
{
(
x
,)
=>
{
assert_eq
!(
x
,
'c'
);
}
}
// test the 1-tuple type too
let
x
:
(
char
,)
=
(
'd'
,);
let
(
y
,)
=
x
;
assert_eq
!(
y
,
'd'
);
}