/
issue-46836-identifier-not-instead-of-negation.stderr
50 lines (43 loc) · 1.68 KB
/
issue-46836-identifier-not-instead-of-negation.stderr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
error: unexpected `for_you` after identifier
--> $DIR/issue-46836-identifier-not-instead-of-negation.rs:13:12
|
LL | if not for_you {
| ----^^^^^^^
| |
| help: use `!` to perform logical negation
error: unexpected `the_worst` after identifier
--> $DIR/issue-46836-identifier-not-instead-of-negation.rs:21:15
|
LL | while not the_worst {
| ----^^^^^^^^^
| |
| help: use `!` to perform logical negation
error: unexpected `println` after identifier
--> $DIR/issue-46836-identifier-not-instead-of-negation.rs:30:9
|
LL | if not // lack of braces is [sic]
| ----- help: use `!` to perform logical negation
LL | println!("Then when?");
| ^^^^^^^
error: expected `{`, found `;`
--> $DIR/issue-46836-identifier-not-instead-of-negation.rs:30:31
|
LL | if not // lack of braces is [sic]
| -- this `if` statement has a condition, but no block
LL | println!("Then when?");
| ^ expected `{`
error: unexpected `2` after identifier
--> $DIR/issue-46836-identifier-not-instead-of-negation.rs:36:24
|
LL | let resource = not 2;
| ----^
| |
| help: use `!` to perform logical negation
error: unexpected `be_smothered_out_before` after identifier
--> $DIR/issue-46836-identifier-not-instead-of-negation.rs:42:27
|
LL | let young_souls = not be_smothered_out_before;
| ----^^^^^^^^^^^^^^^^^^^^^^^
| |
| help: use `!` to perform logical negation
error: aborting due to 6 previous errors