Skip to content

async fn in trait should require async fn in impl #102745

Closed
@compiler-errors

Description

@compiler-errors

For now, we've decided that an async fn() -> T in a trait should not be satisfied by a fn() -> Type where Type: Future<Output = T> until we at least hammer out how #[refine] is gonna work, etc.

So let's just do a HIR check that the signatures are compatible.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions