Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
obsolete-in-place
/
bad.rs
blob: a491bb21a57a031a6e26fd0d7fee5b177709380c [
file
] [
log
] [
blame
]
// Check that `<-` and `in` syntax gets a hard error.
fn
foo
()
{
let
(
x
,
y
)
=
(
0
,
0
);
x
<-
y
;
//~ ERROR unexpected token: `<-`
}
fn
main
()
{
let
(
foo
,
bar
)
=
(
0
,
0
);
in
(
foo
)
{
bar
};
//~ ERROR expected expression, found keyword `in`
}