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