Sign in
fuchsia
/
third_party
/
rust
/
1e3b57ee7754702ce9fcef73686b5bcee405dd4a
/
.
/
src
/
test
/
ui
/
ref-suggestion.rs
blob: 49d199cd9e75422731e1334cab1c933eb593da10 [
file
] [
log
] [
blame
]
fn
main
()
{
let
x
=
vec
![
1
];
let
y
=
x
;
x
;
//~ ERROR use of moved value
let
x
=
vec
![
1
];
let
mut
y
=
x
;
x
;
//~ ERROR use of moved value
let
x
=
(
Some
(
vec
![
1
]),
());
match
x
{
(
Some
(
y
),
())
=>
{},
_
=>
{},
}
x
;
//~ ERROR use of moved value
}