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;
4
4
5
5
use futures:: prelude:: * ;
6
6
7
- #[ async( unpin ) ]
7
+ #[ async]
8
8
fn foo ( ) -> u32 {
9
9
3
10
10
}
11
11
12
- #[ async( unpin , boxed) ]
12
+ #[ async( boxed) ]
13
13
fn bar ( ) -> u32 {
14
14
3
15
15
}
16
16
17
- #[ async_stream( unpin , item = u32 ) ]
17
+ #[ async_stream( item = u32 ) ]
18
18
fn foos ( ) -> u32 {
19
19
3
20
20
}
21
21
22
- #[ async_stream( unpin , boxed, item = u32 ) ]
22
+ #[ async_stream( boxed, item = u32 ) ]
23
23
fn bars ( ) -> u32 {
24
24
3
25
25
}
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
5
5
| ^^^ async functions must return a `Result` or a typedef of `Result`
6
6
|
7
7
= 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 `
9
9
10
10
error[E0277]: the trait bound `u32: futures::__rt::IsResult` is not satisfied
11
11
--> $DIR/not-a-result.rs:13:17
@@ -25,7 +25,7 @@ error[E0277]: the trait bound `u32: futures::__rt::IsResult` is not satisfied
25
25
| ^^^ async functions must return a `Result` or a typedef of `Result`
26
26
|
27
27
= 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 `
29
29
30
30
error[E0277]: the trait bound `u32: futures::__rt::IsResult` is not satisfied
31
31
--> $DIR/not-a-result.rs:18:14
You can’t perform that action at this time.
0 commit comments