fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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