提交 67717b61 编写于 作者: A Alex Crichton

rollup merge of #17686 : lucidd/fix

......@@ -201,12 +201,13 @@ fn test_futurefail() {
#[test]
fn test_sendable_future() {
let expected = "schlorf";
let (tx, rx) = channel();
let f = Future::spawn(proc() { expected });
task::spawn(proc() {
let mut f = f;
let actual = f.get();
assert_eq!(actual, expected);
tx.send(f.get());
});
assert_eq!(rx.recv(), expected);
}
#[test]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册