]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/unit_hash.stderr
Auto merge of #101969 - reez12g:issue-101306, r=reez12g
[rust.git] / src / tools / clippy / tests / ui / unit_hash.stderr
1 error: this call to `hash` on the unit type will do nothing
2   --> $DIR/unit_hash.rs:19: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:24: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:27: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