diff options
| author | bors <bors@rust-lang.org> | 2014-11-18 01:02:19 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-11-18 01:02:19 +0000 |
| commit | 9c96a79a74f10bed18b031ce0ac4126c56d6cfb3 (patch) | |
| tree | 42a980b8b8b145b37aae79c28c7540f8a7eec8d0 /src/libstd/time | |
| parent | 336349c93207d792587eb0b5258b29da6ec0db8a (diff) | |
| parent | 330a1afae84c7bea583907e5b1f02448a4c7bc20 (diff) | |
| download | rust-9c96a79a74f10bed18b031ce0ac4126c56d6cfb3.tar.gz rust-9c96a79a74f10bed18b031ce0ac4126c56d6cfb3.zip | |
auto merge of #19049 : jakub-/rust/roll-up, r=alexcrichton
r? @alexcrichton
Diffstat (limited to 'src/libstd/time')
| -rw-r--r-- | src/libstd/time/duration.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/libstd/time/duration.rs b/src/libstd/time/duration.rs index 83340c9faac..39ca3128ccb 100644 --- a/src/libstd/time/duration.rs +++ b/src/libstd/time/duration.rs @@ -554,11 +554,4 @@ mod tests { assert_eq!(format!("{:30}", Duration::days(1) + Duration::milliseconds(2345)), "P1DT2.345S".to_string()); } - - #[test] - fn span() { - use io::timer::sleep; - let dur = Duration::span(|| sleep(Duration::milliseconds(5))); - assert!(dur > Duration::milliseconds(1)); - } } |
