1 error: this call to `hash` on the unit type will do nothing
2 --> $DIR/unit_hash.rs:19:23
4 LL | Foo::Empty => ().hash(&mut state),
5 | ^^^^^^^^^^^^^^^^^^^ help: remove the call to `hash` or consider using: `0_u8.hash(&mut state)`
7 = note: the implementation of `Hash` for `()` is a no-op
8 = note: `-D clippy::unit-hash` implied by `-D warnings`
10 error: this call to `hash` on the unit type will do nothing
11 --> $DIR/unit_hash.rs:24:5
13 LL | res.hash(&mut state);
14 | ^^^^^^^^^^^^^^^^^^^^ help: remove the call to `hash` or consider using: `0_u8.hash(&mut state)`
16 = note: the implementation of `Hash` for `()` is a no-op
18 error: this call to `hash` on the unit type will do nothing
19 --> $DIR/unit_hash.rs:27:5
21 LL | do_nothing().hash(&mut state);
22 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the call to `hash` or consider using: `0_u8.hash(&mut state)`
24 = note: the implementation of `Hash` for `()` is a no-op
26 error: aborting due to 3 previous errors