]> git.lizzy.rs Git - rust.git/blob - tests/ui/unused_io_amount.stderr
Merge remote-tracking branch 'upstream/beta' into backport_remerge
[rust.git] / 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: read amount is not handled. Use `Read::read_exact` instead
40   --> $DIR/unused_io_amount.rs:28:5
41    |
42 LL |     reader.read(&mut result).ok()?;
43    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44
45 error: read amount is not handled. Use `Read::read_exact` instead
46   --> $DIR/unused_io_amount.rs:37:5
47    |
48 LL |     reader.read(&mut result).or_else(|err| Err(err))?;
49    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50
51 error: read amount is not handled. Use `Read::read_exact` instead
52   --> $DIR/unused_io_amount.rs:49:5
53    |
54 LL |     reader.read(&mut result).or(Err(Error::Kind))?;
55    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
56
57 error: read amount is not handled. Use `Read::read_exact` instead
58   --> $DIR/unused_io_amount.rs:56:5
59    |
60 LL | /     reader
61 LL | |         .read(&mut result)
62 LL | |         .or(Err(Error::Kind))
63 LL | |         .or(Err(Error::Kind))
64 LL | |         .expect("error");
65    | |________________________^
66
67 error: aborting due to 10 previous errors
68