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