2018-03-22 00:38:24 -05:00
|
|
|
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
|
2018-03-22 00:38:24 -05:00
|
|
|
|
|
|
|
|
LL | if not for_you {
|
|
|
|
| ----^^^^^^^
|
|
|
|
| |
|
2022-09-15 09:39:16 -05:00
|
|
|
| help: use `!` to perform logical negation or bitwise not
|
2018-03-22 00:38:24 -05:00
|
|
|
|
|
|
|
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
|
2018-03-22 00:38:24 -05:00
|
|
|
|
|
|
|
|
LL | while not the_worst {
|
|
|
|
| ----^^^^^^^^^
|
|
|
|
| |
|
2022-09-15 09:39:16 -05:00
|
|
|
| help: use `!` to perform logical negation or bitwise not
|
2018-03-22 00:38:24 -05:00
|
|
|
|
|
|
|
error: unexpected `println` after identifier
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-46836-identifier-not-instead-of-negation.rs:20:9
|
2018-03-22 00:38:24 -05:00
|
|
|
|
|
|
|
|
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
|
2018-03-22 00:38:24 -05:00
|
|
|
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
|
2018-03-22 00:38:24 -05:00
|
|
|
|
|
|
|
|
LL | println!("Then when?");
|
2022-01-12 14:43:24 -06:00
|
|
|
| ^ expected `{`
|
2022-05-27 23:58:48 -05:00
|
|
|
|
|
|
|
|
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?");
|
|
|
|
| |______________________________^
|
2018-03-22 00:38:24 -05:00
|
|
|
|
|
|
|
error: unexpected `2` after identifier
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-46836-identifier-not-instead-of-negation.rs:26:24
|
2018-03-22 00:38:24 -05:00
|
|
|
|
|
|
|
|
LL | let resource = not 2;
|
|
|
|
| ----^
|
|
|
|
| |
|
2022-09-15 04:33:28 -05:00
|
|
|
| help: use `!` to perform bitwise not
|
2018-03-22 00:38:24 -05:00
|
|
|
|
|
|
|
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
|
2018-03-22 00:38:24 -05:00
|
|
|
|
|
|
|
|
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
|
2018-03-22 00:38:24 -05:00
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|