]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/io/tests.rs
Auto merge of #93561 - Amanieu:more-unwind-abi, r=nagisa
[rust.git] / library / std / src / io / tests.rs
index ea49bfe3421d1beb6a83f64b211c947c67536887..eb62634856462aa874bc26ab64a9d3381df7a116 100644 (file)
@@ -185,12 +185,12 @@ fn take_eof() {
 
     impl Read for R {
         fn read(&mut self, _: &mut [u8]) -> io::Result<usize> {
-            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) {}
     }