diff options
| author | Aris Merchant <22333129+inquisitivecrystal@users.noreply.github.com> | 2021-07-01 15:07:09 -0700 |
|---|---|---|
| committer | Aris Merchant <22333129+inquisitivecrystal@users.noreply.github.com> | 2021-07-01 15:08:20 -0700 |
| commit | 6d34a2e0074c5ce3e0da4743616ec5b3e96253fb (patch) | |
| tree | e18bcea7860610b0e92ab1061aab75a19798d4af /library/std/src/io/tests.rs | |
| parent | a435b49e86d16e98dcc6595dd471f95e823f41aa (diff) | |
| download | rust-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.rs | 4 |
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(()) } |
