Sign in
fuchsia
/
third_party
/
rust
/
f22bb2e72267890782897c208bbc9114d023dfc7
/
.
/
src
/
test
/
ui
/
expr-block-slot.rs
blob: 54bcbb328b038a1ec762fa1399608b0986ae0c42 [
file
] [
log
] [
blame
]
// run-pass
// Regression test for issue #377
struct
A
{
a
:
isize
}
struct
V
{
v
:
isize
}
pub
fn
main
()
{
let
a
=
{
let
b
=
A
{
a
:
3
};
b
};
assert_eq
!(
a
.
a
,
3
);
let
c
=
{
let
d
=
V
{
v
:
3
};
d
};
assert_eq
!(
c
.
v
,
3
);
}