Sign in
fuchsia
/
third_party
/
rust
/
a9aa2dfe844840a7e414873ce55ef9d02f1038a7
/
.
/
src
/
test
/
ui
/
one-tuple.rs
blob: 00fbadce1ac882af2bcbaa22a7859ca2181380b0 [
file
] [
log
] [
blame
]
// run-pass
// 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'
);
}