]> git.lizzy.rs Git - rust.git/blob - src/test/ui/obsolete-in-place/bad.stderr
Rollup merge of #89468 - FabianWolff:issue-89358, r=jackh726
[rust.git] / src / test / ui / obsolete-in-place / bad.stderr
1 error: unexpected token: `<-`
2   --> $DIR/bad.rs:5:7
3    |
4 LL |     x <- y;
5    |       ^^
6    |
7 help: if you meant to write a comparison against a negative value, add a space in between `<` and `-`
8    |
9 LL |     x < - y;
10    |       ~~~
11
12 error: expected expression, found keyword `in`
13   --> $DIR/bad.rs:10:5
14    |
15 LL |     in(foo) { bar };
16    |     ^^ expected expression
17
18 error: aborting due to 2 previous errors
19