Sign in
fuchsia
/
third_party
/
rust
/
20d43d03dd27568f609d621ce44673393e838892
/
.
/
src
/
test
/
ui
/
issues
/
issue-40402-ref-hints
/
issue-40402-2.rs
blob: 1fb6e31e964ee1ab068969dc3e679bc57f3c0ed4 [
file
] [
log
] [
blame
]
// Check that we do suggest `(ref a, ref b)` here, since `a` and `b`
// are nested within a pattern
fn
main
()
{
let
x
=
vec
![(
String
::
new
(),
String
::
new
())];
let
(
a
,
b
)
=
x
[
0
];
//~ ERROR cannot move out of index
}