]>
Commit | Line | Data |
---|---|---|
83c7162d | 1 | error: unexpected `for_you` after identifier |
0731742a | 2 | --> $DIR/issue-46836-identifier-not-instead-of-negation.rs:3:12 |
83c7162d XL |
3 | | |
4 | LL | if not for_you { | |
5 | | ----^^^^^^^ | |
6 | | | | |
2b03887a | 7 | | help: use `!` to perform logical negation or bitwise not |
83c7162d XL |
8 | |
9 | error: unexpected `the_worst` after identifier | |
0731742a | 10 | --> $DIR/issue-46836-identifier-not-instead-of-negation.rs:11:15 |
83c7162d XL |
11 | | |
12 | LL | while not the_worst { | |
13 | | ----^^^^^^^^^ | |
14 | | | | |
2b03887a | 15 | | help: use `!` to perform logical negation or bitwise not |
83c7162d XL |
16 | |
17 | error: unexpected `println` after identifier | |
0731742a | 18 | --> $DIR/issue-46836-identifier-not-instead-of-negation.rs:20:9 |
83c7162d XL |
19 | | |
20 | LL | if not // lack of braces is [sic] | |
2b03887a | 21 | | ----- help: use `!` to perform logical negation or bitwise not |
83c7162d XL |
22 | LL | println!("Then when?"); |
23 | | ^^^^^^^ | |
24 | ||
25 | error: expected `{`, found `;` | |
0731742a | 26 | --> $DIR/issue-46836-identifier-not-instead-of-negation.rs:20:31 |
83c7162d | 27 | | |
83c7162d | 28 | LL | println!("Then when?"); |
5e7ed085 | 29 | | ^ expected `{` |
923072b8 FG |
30 | | |
31 | note: the `if` expression is missing a block after this condition | |
32 | --> $DIR/issue-46836-identifier-not-instead-of-negation.rs:19:8 | |
33 | | | |
34 | LL | if not // lack of braces is [sic] | |
35 | | ________^ | |
36 | LL | | println!("Then when?"); | |
37 | | |______________________________^ | |
83c7162d XL |
38 | |
39 | error: unexpected `2` after identifier | |
0731742a | 40 | --> $DIR/issue-46836-identifier-not-instead-of-negation.rs:26:24 |
83c7162d XL |
41 | | |
42 | LL | let resource = not 2; | |
43 | | ----^ | |
44 | | | | |
2b03887a | 45 | | help: use `!` to perform bitwise not |
83c7162d XL |
46 | |
47 | error: unexpected `be_smothered_out_before` after identifier | |
0731742a | 48 | --> $DIR/issue-46836-identifier-not-instead-of-negation.rs:32:27 |
83c7162d XL |
49 | | |
50 | LL | let young_souls = not be_smothered_out_before; | |
51 | | ----^^^^^^^^^^^^^^^^^^^^^^^ | |
52 | | | | |
2b03887a | 53 | | help: use `!` to perform logical negation or bitwise not |
83c7162d XL |
54 | |
55 | error: aborting due to 6 previous errors | |
56 |