Skip to content

Commit b8369e2

Browse files
Nemo157boats
authored andcommitted
Fix ui tests
1 parent ae36d12 commit b8369e2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

futures/testcrate/ui/not-a-result.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ extern crate futures;
44

55
use futures::prelude::*;
66

7-
#[async(unpin)]
7+
#[async]
88
fn foo() -> u32 {
99
3
1010
}
1111

12-
#[async(unpin, boxed)]
12+
#[async(boxed)]
1313
fn bar() -> u32 {
1414
3
1515
}
1616

17-
#[async_stream(unpin, item = u32)]
17+
#[async_stream(item = u32)]
1818
fn foos() -> u32 {
1919
3
2020
}
2121

22-
#[async_stream(unpin, boxed, item = u32)]
22+
#[async_stream(boxed, item = u32)]
2323
fn bars() -> u32 {
2424
3
2525
}

futures/testcrate/ui/not-a-result.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

1010
error[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

3030
error[E0277]: the trait bound `u32: futures::__rt::IsResult` is not satisfied
3131
--> $DIR/not-a-result.rs:18:14

0 commit comments

Comments
 (0)