Skip to content

Commit 81a1964

Browse files
authored
Rollup merge of #106200 - compiler-errors:suggest-impl-trait, r=estebank
Suggest `impl Fn*` and `impl Future` in `-> _` return suggestions Follow-up to #106172, only the last commit is relevant. Can rebase once that PR is landed for easier review. Suggests `impl Future` and `impl Fn{,Mut,Once}` in `-> _` return suggestions. r? `@estebank`
2 parents 721562c + 741a40f commit 81a1964

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/future/future.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ use crate::task::{Context, Poll};
3737
pub trait Future {
3838
/// The type of value produced on completion.
3939
#[stable(feature = "futures_api", since = "1.36.0")]
40+
#[rustc_diagnostic_item = "FutureOutput"]
4041
type Output;
4142

4243
/// Attempt to resolve the future to a final value, registering

0 commit comments

Comments
 (0)