2021-07-01 11:17:38 -05:00
|
|
|
error: offset calculation on zero-sized value
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/zero_offset.rs:5:9
|
2019-11-14 13:18:24 -06:00
|
|
|
|
|
2021-07-01 11:17:38 -05:00
|
|
|
LL | m.offset(0);
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `#[deny(clippy::zst_offset)]` on by default
|
|
|
|
|
|
|
|
error: offset calculation on zero-sized value
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/zero_offset.rs:8:9
|
2021-07-01 11:17:38 -05:00
|
|
|
|
|
|
|
|
LL | m.wrapping_add(0);
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: offset calculation on zero-sized value
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/zero_offset.rs:10:9
|
2021-07-01 11:17:38 -05:00
|
|
|
|
|
|
|
|
LL | m.sub(0);
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: offset calculation on zero-sized value
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/zero_offset.rs:12:9
|
2021-07-01 11:17:38 -05:00
|
|
|
|
|
|
|
|
LL | m.wrapping_sub(0);
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: offset calculation on zero-sized value
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/zero_offset.rs:16:9
|
2021-07-01 11:17:38 -05:00
|
|
|
|
|
|
|
|
LL | c.offset(0);
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: offset calculation on zero-sized value
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/zero_offset.rs:18:9
|
2021-07-01 11:17:38 -05:00
|
|
|
|
|
|
|
|
LL | c.wrapping_add(0);
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: offset calculation on zero-sized value
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/zero_offset.rs:20:9
|
2021-07-01 11:17:38 -05:00
|
|
|
|
|
|
|
|
LL | c.sub(0);
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: offset calculation on zero-sized value
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/zero_offset.rs:22:9
|
2021-07-01 11:17:38 -05:00
|
|
|
|
|
|
|
|
LL | c.wrapping_sub(0);
|
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2019-11-14 13:18:24 -06:00
|
|
|
|
2021-07-01 11:17:38 -05:00
|
|
|
error: aborting due to 8 previous errors
|
2019-11-14 13:18:24 -06:00
|
|
|
|