]> git.lizzy.rs Git - rust.git/blob - tests/ui/unused_io_amount.stderr
Merge pull request #1748 from luisbg/empty_lines
[rust.git] / tests / ui / unused_io_amount.stderr
1 error: handle written amount returned or use `Write::write_all` instead
2   --> $DIR/unused_io_amount.rs:10:5
3    |
4 10 |     try!(s.write(b"test"));
5    |     ^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: #[deny(unused_io_amount)] on by default
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   --> $DIR/unused_io_amount.rs:12:5
12    |
13 12 |     try!(s.read(&mut buf));
14    |     ^^^^^^^^^^^^^^^^^^^^^^^
15    |
16    = note: #[deny(unused_io_amount)] on by default
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   --> $DIR/unused_io_amount.rs:17:5
21    |
22 17 |     s.write(b"test")?;
23    |     ^^^^^^^^^^^^^^^^^
24    |
25    = note: #[deny(unused_io_amount)] on by default
26
27 error: handle read amount returned or use `Read::read_exact` instead
28   --> $DIR/unused_io_amount.rs:19:5
29    |
30 19 |     s.read(&mut buf)?;
31    |     ^^^^^^^^^^^^^^^^^
32    |
33    = note: #[deny(unused_io_amount)] on by default
34
35 error: handle written amount returned or use `Write::write_all` instead
36   --> $DIR/unused_io_amount.rs:24:5
37    |
38 24 |     s.write(b"test").unwrap();
39    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
40    |
41    = note: #[deny(unused_io_amount)] on by default
42
43 error: handle read amount returned or use `Read::read_exact` instead
44   --> $DIR/unused_io_amount.rs:26:5
45    |
46 26 |     s.read(&mut buf).unwrap();
47    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
48    |
49    = note: #[deny(unused_io_amount)] on by default
50
51 error: aborting due to 6 previous errors
52