]> git.proxmox.com Git - rustc.git/blob - tests/ui/did_you_mean/issue-41679-tilde-bitwise-negation-attempt.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / did_you_mean / issue-41679-tilde-bitwise-negation-attempt.stderr
1 error: `~` cannot be used as a unary operator
2 --> $DIR/issue-41679-tilde-bitwise-negation-attempt.rs:4:14
3 |
4 LL | let _x = ~1;
5 | ^ help: use `!` to perform bitwise not
6
7 error: unexpected `1` after identifier
8 --> $DIR/issue-41679-tilde-bitwise-negation-attempt.rs:5:18
9 |
10 LL | let _y = not 1;
11 | ----^
12 | |
13 | help: use `!` to perform bitwise not
14
15 error: unexpected keyword `false` after identifier
16 --> $DIR/issue-41679-tilde-bitwise-negation-attempt.rs:6:18
17 |
18 LL | let _z = not false;
19 | ----^^^^^
20 | |
21 | help: use `!` to perform logical negation
22
23 error: unexpected keyword `true` after identifier
24 --> $DIR/issue-41679-tilde-bitwise-negation-attempt.rs:7:18
25 |
26 LL | let _a = not true;
27 | ----^^^^
28 | |
29 | help: use `!` to perform logical negation
30
31 error: unexpected `v` after identifier
32 --> $DIR/issue-41679-tilde-bitwise-negation-attempt.rs:9:18
33 |
34 LL | let _v = not v;
35 | ----^
36 | |
37 | help: use `!` to perform logical negation or bitwise not
38
39 error: aborting due to 5 previous errors
40