rollup merge of #17686 : lucidd/fix

This commit is contained in:
Alex Crichton 2014-10-02 14:50:21 -07:00
commit 67717b61e6

View File

@ -201,12 +201,13 @@ mod test {
#[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]