Skip to content

Commit 06f5f5e

Browse files
authored
Rollup merge of rust-lang#106200 - compiler-errors:suggest-impl-trait, r=estebank
Suggest `impl Fn*` and `impl Future` in `-> _` return suggestions Follow-up to rust-lang#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 1973e29 + 9e90828 commit 06f5f5e

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)