1error: offset calculation on zero-sized value
2  --> $DIR/zero_offset.rs:4:9
3   |
4LL |         m.offset(0);
5   |         ^^^^^^^^^^^
6   |
7   = note: `#[deny(clippy::zst_offset)]` on by default
8
9error: offset calculation on zero-sized value
10  --> $DIR/zero_offset.rs:5:9
11   |
12LL |         m.wrapping_add(0);
13   |         ^^^^^^^^^^^^^^^^^
14
15error: offset calculation on zero-sized value
16  --> $DIR/zero_offset.rs:6:9
17   |
18LL |         m.sub(0);
19   |         ^^^^^^^^
20
21error: offset calculation on zero-sized value
22  --> $DIR/zero_offset.rs:7:9
23   |
24LL |         m.wrapping_sub(0);
25   |         ^^^^^^^^^^^^^^^^^
26
27error: offset calculation on zero-sized value
28  --> $DIR/zero_offset.rs:10:9
29   |
30LL |         c.offset(0);
31   |         ^^^^^^^^^^^
32
33error: offset calculation on zero-sized value
34  --> $DIR/zero_offset.rs:11:9
35   |
36LL |         c.wrapping_add(0);
37   |         ^^^^^^^^^^^^^^^^^
38
39error: offset calculation on zero-sized value
40  --> $DIR/zero_offset.rs:12:9
41   |
42LL |         c.sub(0);
43   |         ^^^^^^^^
44
45error: offset calculation on zero-sized value
46  --> $DIR/zero_offset.rs:13:9
47   |
48LL |         c.wrapping_sub(0);
49   |         ^^^^^^^^^^^^^^^^^
50
51error: aborting due to 8 previous errors
52
53