20 lines
506 B
Plaintext
20 lines
506 B
Plaintext
error: expected expression, found keyword `in`
|
|
--> $DIR/bad.rs:10:5
|
|
|
|
|
LL | in(foo) { bar };
|
|
| ^^ expected expression
|
|
|
|
error[E0282]: type annotations needed
|
|
--> $DIR/bad.rs:9:8
|
|
|
|
|
LL | let (x, y, foo, bar);
|
|
| ---------------- consider giving the pattern a type
|
|
LL | x <- y;
|
|
| ^^^ cannot infer type
|
|
|
|
|
= note: type must be known at this point
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0282`.
|