Sign in
◑
Theme
rust
/
rust
/
cdfa29797d09d9622fd32cc85c65ea9309ea46df
/
.
/
tests
/
ui
/
parser
/
removed-syntax
/
removed-syntax-obsolete-in-place.rs
blob: a491bb21a57a031a6e26fd0d7fee5b177709380c [
file
]
// 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`
}