]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/unused_io_amount.stderr
Rollup merge of #78769 - est31:remove_lifetimes, r=KodrAus
[rust.git] / src / tools / clippy / tests / ui / unused_io_amount.stderr
1 error: written amount is not handled. Use `Write::write_all` instead
2   --> $DIR/unused_io_amount.rs:7:5
3    |
4 LL |     s.write(b"test")?;
5    |     ^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::unused-io-amount` implied by `-D warnings`
8
9 error: read amount is not handled. Use `Read::read_exact` instead
10   --> $DIR/unused_io_amount.rs:9:5
11    |
12 LL |     s.read(&mut buf)?;
13    |     ^^^^^^^^^^^^^^^^^
14
15 error: written amount is not handled. Use `Write::write_all` instead
16   --> $DIR/unused_io_amount.rs:14:5
17    |
18 LL |     s.write(b"test").unwrap();
19    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
20
21 error: read amount is not handled. Use `Read::read_exact` instead
22   --> $DIR/unused_io_amount.rs:16:5
23    |
24 LL |     s.read(&mut buf).unwrap();
25    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
26
27 error: read amount is not handled
28   --> $DIR/unused_io_amount.rs:20:5
29    |
30 LL |     s.read_vectored(&mut [io::IoSliceMut::new(&mut [])])?;
31    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32
33 error: written amount is not handled
34   --> $DIR/unused_io_amount.rs:21:5
35    |
36 LL |     s.write_vectored(&[io::IoSlice::new(&[])])?;
37    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38
39 error: aborting due to 6 previous errors
40