X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=library%2Fstd%2Fsrc%2Fio%2Ftests.rs;h=eb62634856462aa874bc26ab64a9d3381df7a116;hb=2a8dbdb1e2d9f44e7971d9a70b41d4d86db0112f;hp=ea49bfe3421d1beb6a83f64b211c947c67536887;hpb=6cfe9af6a074b842198176d21170e49ee0cc6add;p=rust.git diff --git a/library/std/src/io/tests.rs b/library/std/src/io/tests.rs index ea49bfe3421..eb626348564 100644 --- a/library/std/src/io/tests.rs +++ b/library/std/src/io/tests.rs @@ -185,12 +185,12 @@ fn take_eof() { impl Read for R { fn read(&mut self, _: &mut [u8]) -> io::Result { - Err(io::Error::new_const(io::ErrorKind::Other, &"")) + Err(io::const_io_error!(io::ErrorKind::Other, "")) } } impl BufRead for R { fn fill_buf(&mut self) -> io::Result<&[u8]> { - Err(io::Error::new_const(io::ErrorKind::Other, &"")) + Err(io::const_io_error!(io::ErrorKind::Other, "")) } fn consume(&mut self, _amt: usize) {} }