Skip to content

Commit c6836ec

Browse files
fixup test
1 parent 58f4642 commit c6836ec

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

tests/collect.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
use async_std::prelude::*;
2-
use async_std::io;
3-
use async_std::task;
4-
1+
#[cfg(feature = "unstable")]
52
#[test]
6-
fn test_send() -> io::Result<()> {
3+
fn test_send() -> async_std::io::Result<()> {
4+
use async_std::prelude::*;
5+
use async_std::{stream, task};
6+
77
task::block_on(async {
88
fn test_send_trait<T: Send>(_: &T) {}
99

10-
let stream = futures::stream::pending::<()>();
10+
let stream = stream::repeat(1u8).take(10);
1111
test_send_trait(&stream);
1212

1313
let fut = stream.collect::<Vec<_>>();
1414

1515
// This line triggers a compilation error
1616
test_send_trait(&fut);
17+
18+
Ok(())
1719
})
1820
}

0 commit comments

Comments
 (0)