about summary refs log tree commit diff
path: root/library/std/src/io/tests.rs
diff options
context:
space:
mode:
authorAris Merchant <22333129+inquisitivecrystal@users.noreply.github.com>2021-07-01 15:07:09 -0700
committerAris Merchant <22333129+inquisitivecrystal@users.noreply.github.com>2021-07-01 15:08:20 -0700
commit6d34a2e0074c5ce3e0da4743616ec5b3e96253fb (patch)
treee18bcea7860610b0e92ab1061aab75a19798d4af /library/std/src/io/tests.rs
parenta435b49e86d16e98dcc6595dd471f95e823f41aa (diff)
downloadrust-6d34a2e0074c5ce3e0da4743616ec5b3e96253fb.tar.gz
rust-6d34a2e0074c5ce3e0da4743616ec5b3e96253fb.zip
Stabilize `Seek::rewind`
Diffstat (limited to 'library/std/src/io/tests.rs')
-rw-r--r--library/std/src/io/tests.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/std/src/io/tests.rs b/library/std/src/io/tests.rs
index b73bcf85fbe..1beb72a9a50 100644
--- a/library/std/src/io/tests.rs
+++ b/library/std/src/io/tests.rs
@@ -336,6 +336,10 @@ fn seek_position() -> io::Result<()> {
     assert_eq!(c.stream_position()?, 8);
     assert_eq!(c.stream_position()?, 8);
 
+    c.rewind()?;
+    assert_eq!(c.stream_position()?, 0);
+    assert_eq!(c.stream_position()?, 0);
+
     Ok(())
 }