1 error: handle written amount returned or use `Write::write_all` instead
2 --> unused_io_amount.rs:11:5
4 11 | try!(s.write(b"test"));
5 | ^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D unused-io-amount` implied by `-D warnings`
8 = note: this error originates in a macro outside of the current crate
10 error: handle read amount returned or use `Read::read_exact` instead
11 --> unused_io_amount.rs:13:5
13 13 | try!(s.read(&mut buf));
14 | ^^^^^^^^^^^^^^^^^^^^^^^
16 = note: `-D unused-io-amount` implied by `-D warnings`
17 = note: this error originates in a macro outside of the current crate
19 error: handle written amount returned or use `Write::write_all` instead
20 --> unused_io_amount.rs:18:5
22 18 | s.write(b"test")?;
25 = note: `-D unused-io-amount` implied by `-D warnings`
27 error: handle read amount returned or use `Read::read_exact` instead
28 --> unused_io_amount.rs:20:5
30 20 | s.read(&mut buf)?;
33 = note: `-D unused-io-amount` implied by `-D warnings`
35 error: handle written amount returned or use `Write::write_all` instead
36 --> unused_io_amount.rs:25:5
38 25 | s.write(b"test").unwrap();
39 | ^^^^^^^^^^^^^^^^^^^^^^^^^
41 = note: `-D unused-io-amount` implied by `-D warnings`
43 error: handle read amount returned or use `Read::read_exact` instead
44 --> unused_io_amount.rs:27:5
46 27 | s.read(&mut buf).unwrap();
47 | ^^^^^^^^^^^^^^^^^^^^^^^^^
49 = note: `-D unused-io-amount` implied by `-D warnings`
51 error: aborting due to previous error(s)
54 To learn more, run the command again with --verbose.