]> git.lizzy.rs Git - rust.git/blob - tests/ui/unit_hash.stderr
removing unsafe from test fn's && renaming shrink to sugg_span
[rust.git] / tests / ui / unit_hash.stderr
1 error: this call to `hash` on the unit type will do nothing
2   --> $DIR/unit_hash.rs:18:23
3    |
4 LL |         Foo::Empty => ().hash(&mut state),
5    |                       ^^^^^^^^^^^^^^^^^^^ help: remove the call to `hash` or consider using: `0_u8.hash(&mut state)`
6    |
7    = note: `-D clippy::unit-hash` implied by `-D warnings`
8    = note: the implementation of `Hash` for `()` is a no-op
9
10 error: this call to `hash` on the unit type will do nothing
11   --> $DIR/unit_hash.rs:23:5
12    |
13 LL |     res.hash(&mut state);
14    |     ^^^^^^^^^^^^^^^^^^^^ help: remove the call to `hash` or consider using: `0_u8.hash(&mut state)`
15    |
16    = note: the implementation of `Hash` for `()` is a no-op
17
18 error: this call to `hash` on the unit type will do nothing
19   --> $DIR/unit_hash.rs:26:5
20    |
21 LL |     do_nothing().hash(&mut state);
22    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the call to `hash` or consider using: `0_u8.hash(&mut state)`
23    |
24    = note: the implementation of `Hash` for `()` is a no-op
25
26 error: aborting due to 3 previous errors
27