rust-lang / keyword-generics-initiative

Public repository for the Rust keyword generics initiative
https://rust-lang.github.io/keyword-generics-initiative/
Other
96 stars 11 forks source link

trait-level async should connect to method-level async sooner #45

Closed yoshuawuyts closed 9 months ago

yoshuawuyts commented 9 months ago

From talking with @fishrock123, effect generic trait decls it was unclear that the trait-level async is linked to the method-level async.

We should probably make that link clear in the summary section straight away.

Fishrock123 commented 9 months ago

My preference would be something directly in the example:

#[maybe(async)]
trait Into<T>: Sized {
    #[maybe(async)] // <-- Requires the `#[maybe()]` on the Trait
    fn into(self) -> T;
}