Bounds on return types in supertraits are not implied #112568
Labels
C-bug
Category: This is a bug.
F-return_type_notation
`#[feature(return_type_notation)]`
requires-nightly
This issue requires a nightly compiler in some way.
This is an issue with the unstable
return_type_notation
feature.I'm trying to write some code that provides
Send
-able versions of traits that may contain async functions:Gives the error:
I expected the
SendFoo: Foo<bar(): Send>
bound to mean "anything that implementsSendFoo
also has abar()
which implementsSend
" (I think this is implied bounds?). Instead, it appears to function like a where clause on a trait (non-implied). It's acting like I wrote:(note that this syntax is not currently accepted by the compiler, but it gets the point across)
Are these bounds supposed to not be implied? As an aside, the error message here tripped me up for a while too.
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: