rust/tests/ui/did_you_mean/issue-46836-identifier-not-instead-of-negation.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1.9 KiB
Plaintext
Raw Normal View History

error: unexpected `for_you` after identifier
2018-12-25 09:56:47 -06:00
--> $DIR/issue-46836-identifier-not-instead-of-negation.rs:3:12
|
LL | if not for_you {
| ----^^^^^^^
| |
2022-09-15 09:39:16 -05:00
| help: use `!` to perform logical negation or bitwise not
error: unexpected `the_worst` after identifier
2018-12-25 09:56:47 -06:00
--> $DIR/issue-46836-identifier-not-instead-of-negation.rs:11:15
|
LL | while not the_worst {
| ----^^^^^^^^^
| |
2022-09-15 09:39:16 -05:00
| help: use `!` to perform logical negation or bitwise not
error: unexpected `println` after identifier
2018-12-25 09:56:47 -06:00
--> $DIR/issue-46836-identifier-not-instead-of-negation.rs:20:9
|
LL | if not // lack of braces is [sic]
2022-09-15 09:39:16 -05:00
| ----- help: use `!` to perform logical negation or bitwise not
LL | println!("Then when?");
| ^^^^^^^
error: expected `{`, found `;`
2018-12-25 09:56:47 -06:00
--> $DIR/issue-46836-identifier-not-instead-of-negation.rs:20:31
|
LL | println!("Then when?");
| ^ expected `{`
|
note: the `if` expression is missing a block after this condition
--> $DIR/issue-46836-identifier-not-instead-of-negation.rs:19:8
|
LL | if not // lack of braces is [sic]
| ________^
LL | | println!("Then when?");
| |______________________________^
error: unexpected `2` after identifier
2018-12-25 09:56:47 -06:00
--> $DIR/issue-46836-identifier-not-instead-of-negation.rs:26:24
|
LL | let resource = not 2;
| ----^
| |
| help: use `!` to perform bitwise not
error: unexpected `be_smothered_out_before` after identifier
2018-12-25 09:56:47 -06:00
--> $DIR/issue-46836-identifier-not-instead-of-negation.rs:32:27
|
LL | let young_souls = not be_smothered_out_before;
| ----^^^^^^^^^^^^^^^^^^^^^^^
| |
2022-09-15 09:39:16 -05:00
| help: use `!` to perform logical negation or bitwise not
error: aborting due to 6 previous errors