Skip to content

Commit 3268bf1

Browse files
committed
Update .stderr files
1 parent 0cb7693 commit 3268bf1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/test/ui/issues-71798.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ LL | fn test_ref(x: &u32) -> impl std::future::Future<Output = u32> + '_ {
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `u32` is not a future
1212
|
1313
= help: the trait `Future` is not implemented for `u32`
14+
= note: u32 must be a future or must implement `IntoFuture` to be awaited
1415

1516
error: aborting due to 2 previous errors
1617

src/test/ui/suggestions/async-fn-ctor-passed-as-arg-where-it-should-have-been-called.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ LL | bar(foo);
1010
| required by a bound introduced by this call
1111
|
1212
= help: the trait `Future` is not implemented for `fn() -> impl Future<Output = ()> {foo}`
13+
= note: fn() -> impl Future<Output = ()> {foo} must be a future or must implement `IntoFuture` to be awaited
1314
note: required by a bound in `bar`
1415
--> $DIR/async-fn-ctor-passed-as-arg-where-it-should-have-been-called.rs:7:16
1516
|
@@ -31,6 +32,7 @@ LL | bar(async_closure);
3132
| required by a bound introduced by this call
3233
|
3334
= help: the trait `Future` is not implemented for `[closure@$DIR/async-fn-ctor-passed-as-arg-where-it-should-have-been-called.rs:11:25: 11:36]`
35+
= note: [closure@$DIR/async-fn-ctor-passed-as-arg-where-it-should-have-been-called.rs:11:25: 11:36] must be a future or must implement `IntoFuture` to be awaited
3436
note: required by a bound in `bar`
3537
--> $DIR/async-fn-ctor-passed-as-arg-where-it-should-have-been-called.rs:7:16
3638
|

0 commit comments

Comments
 (0)