mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 22:12:15 +00:00
12 lines
253 B
Rust
12 lines
253 B
Rust
// 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`
|
|
}
|