]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/unused_io_amount.stderr
Fix the test suite after cargo update
[rust.git] / clippy_tests / examples / unused_io_amount.stderr
1 error: handle written amount returned or use `Write::write_all` instead
2   --> unused_io_amount.rs:11:5
3    |
4 11 |     try!(s.write(b"test"));
5    |     ^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D unused-io-amount` implied by `-D warnings`
8    = note: this error originates in a macro outside of the current crate
9
10 error: handle read amount returned or use `Read::read_exact` instead
11   --> unused_io_amount.rs:13:5
12    |
13 13 |     try!(s.read(&mut buf));
14    |     ^^^^^^^^^^^^^^^^^^^^^^^
15    |
16    = note: `-D unused-io-amount` implied by `-D warnings`
17    = note: this error originates in a macro outside of the current crate
18
19 error: handle written amount returned or use `Write::write_all` instead
20   --> unused_io_amount.rs:18:5
21    |
22 18 |     s.write(b"test")?;
23    |     ^^^^^^^^^^^^^^^^^
24    |
25    = note: `-D unused-io-amount` implied by `-D warnings`
26
27 error: handle read amount returned or use `Read::read_exact` instead
28   --> unused_io_amount.rs:20:5
29    |
30 20 |     s.read(&mut buf)?;
31    |     ^^^^^^^^^^^^^^^^^
32    |
33    = note: `-D unused-io-amount` implied by `-D warnings`
34
35 error: handle written amount returned or use `Write::write_all` instead
36   --> unused_io_amount.rs:25:5
37    |
38 25 |     s.write(b"test").unwrap();
39    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
40    |
41    = note: `-D unused-io-amount` implied by `-D warnings`
42
43 error: handle read amount returned or use `Read::read_exact` instead
44   --> unused_io_amount.rs:27:5
45    |
46 27 |     s.read(&mut buf).unwrap();
47    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
48    |
49    = note: `-D unused-io-amount` implied by `-D warnings`
50
51 error: aborting due to previous error(s)
52
53
54 To learn more, run the command again with --verbose.