File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -4,22 +4,22 @@ extern crate futures;
44
55use futures:: prelude:: * ;
66
7- #[ async( unpin ) ]
7+ #[ async]
88fn foo ( ) -> u32 {
99 3
1010}
1111
12- #[ async( unpin , boxed) ]
12+ #[ async( boxed) ]
1313fn bar ( ) -> u32 {
1414 3
1515}
1616
17- #[ async_stream( unpin , item = u32 ) ]
17+ #[ async_stream( item = u32 ) ]
1818fn foos ( ) -> u32 {
1919 3
2020}
2121
22- #[ async_stream( unpin , boxed, item = u32 ) ]
22+ #[ async_stream( boxed, item = u32 ) ]
2323fn bars ( ) -> u32 {
2424 3
2525}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ error[E0277]: the trait bound `u32: futures::__rt::IsResult` is not satisfied
55 | ^^^ async functions must return a `Result` or a typedef of `Result`
66 |
77 = help: the trait `futures::__rt::IsResult` is not implemented for `u32`
8- = note: required by `futures::__rt::gen_move `
8+ = note: required by `futures::__rt::gen_future `
99
1010error[E0277]: the trait bound `u32: futures::__rt::IsResult` is not satisfied
1111 --> $DIR/not-a-result.rs:13:17
@@ -25,7 +25,7 @@ error[E0277]: the trait bound `u32: futures::__rt::IsResult` is not satisfied
2525 | ^^^ async functions must return a `Result` or a typedef of `Result`
2626 |
2727 = help: the trait `futures::__rt::IsResult` is not implemented for `u32`
28- = note: required by `futures::__rt::gen_move `
28+ = note: required by `futures::__rt::gen_future `
2929
3030error[E0277]: the trait bound `u32: futures::__rt::IsResult` is not satisfied
3131 --> $DIR/not-a-result.rs:18:14
You can’t perform that action at this time.
0 commit comments