Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
moves
/
move-out-of-tuple-field.rs
blob: e5a505bb88d328bef7de2ffc33b6dbc343b17b25 [
file
] [
log
] [
blame
]
#![
feature
(
box_syntax
)]
struct
Foo
(
Box
<
isize
>);
fn
main
()
{
let
x
:
(
Box
<
_
>,)
=
(
box
1
,);
let
y
=
x
.
0
;
let
z
=
x
.
0
;
//~ ERROR use of moved value: `x.0`
let
x
=
Foo
(
box
1
);
let
y
=
x
.
0
;
let
z
=
x
.
0
;
//~ ERROR use of moved value: `x.0`
}