doubly_futures
This commit is contained in:
parent
b28faf500a
commit
c4d4448745
@ -271,3 +271,12 @@ fn with_futures() {
|
|||||||
let x = futures::executor::block_on(x.into_future_()).into_::<i32>();
|
let x = futures::executor::block_on(x.into_future_()).into_::<i32>();
|
||||||
assert_eq!(x, 10);
|
assert_eq!(x, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn doubly_futures() {
|
||||||
|
type U = Composition<Futures, Futures>;
|
||||||
|
let x = generic_test::<U>();
|
||||||
|
let x = futures::executor::block_on(async { x.into_future_().await.into_future_().await })
|
||||||
|
.into_::<i32>();
|
||||||
|
assert_eq!(x, 10);
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user