Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
borrowck
/
borrowck-binding-mutbl.rs
blob: c2d2e02ec156683df3c606c0366b648610241230 [
file
] [
log
] [
blame
]
// run-pass
struct
F
{
f
:
Vec
<
isize
>
}
fn
impure
(
_v
:
&[
isize
])
{
}
pub
fn
main
()
{
let
mut
x
=
F
{
f
:
vec
![
3
]};
match
x
{
F
{
f
:
ref
mut
v
}
=>
{
impure
(
v
);
}
}
}