blob: b69c7b92d56a6a7e077d9d10c98fb081031abcf2 (
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
|
error: offset calculation on zero-sized value
--> tests/ui/zero_offset.rs:5:9
|
LL | m.offset(0);
| ^^^^^^^^^^^
|
= note: `#[deny(clippy::zst_offset)]` on by default
error: offset calculation on zero-sized value
--> tests/ui/zero_offset.rs:8:9
|
LL | m.wrapping_add(0);
| ^^^^^^^^^^^^^^^^^
error: offset calculation on zero-sized value
--> tests/ui/zero_offset.rs:11:9
|
LL | m.sub(0);
| ^^^^^^^^
error: offset calculation on zero-sized value
--> tests/ui/zero_offset.rs:14:9
|
LL | m.wrapping_sub(0);
| ^^^^^^^^^^^^^^^^^
error: offset calculation on zero-sized value
--> tests/ui/zero_offset.rs:18:9
|
LL | c.offset(0);
| ^^^^^^^^^^^
error: offset calculation on zero-sized value
--> tests/ui/zero_offset.rs:21:9
|
LL | c.wrapping_add(0);
| ^^^^^^^^^^^^^^^^^
error: offset calculation on zero-sized value
--> tests/ui/zero_offset.rs:24:9
|
LL | c.sub(0);
| ^^^^^^^^
error: offset calculation on zero-sized value
--> tests/ui/zero_offset.rs:27:9
|
LL | c.wrapping_sub(0);
| ^^^^^^^^^^^^^^^^^
error: aborting due to 8 previous errors
|