blob: 952ac76a003d65f83c95445c31c573afdce82e31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
error: `~` cannot be used as a unary operator
--> $DIR/issue-41679-tilde-bitwise-negation-attempt.rs:4:14
|
LL | let _x = ~1;
| ^
|
help: use `!` to perform bitwise not
|
LL | let _x = !1;
| ~
error: unexpected `1` after identifier
--> $DIR/issue-41679-tilde-bitwise-negation-attempt.rs:5:18
|
LL | let _y = not 1;
| ^
|
help: use `!` to perform bitwise not
|
LL | let _y = !1;
| ~
error: unexpected keyword `false` after identifier
--> $DIR/issue-41679-tilde-bitwise-negation-attempt.rs:6:18
|
LL | let _z = not false;
| ^^^^^
|
help: use `!` to perform logical negation
|
LL | let _z = !false;
| ~
error: unexpected keyword `true` after identifier
--> $DIR/issue-41679-tilde-bitwise-negation-attempt.rs:7:18
|
LL | let _a = not true;
| ^^^^
|
help: use `!` to perform logical negation
|
LL | let _a = !true;
| ~
error: unexpected `v` after identifier
--> $DIR/issue-41679-tilde-bitwise-negation-attempt.rs:9:18
|
LL | let _v = not v;
| ^
|
help: use `!` to perform logical negation or bitwise not
|
LL | let _v = !v;
| ~
error: aborting due to 5 previous errors
|