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