RPITIT forces Self: Sized upon all other methods in a given trait. #115464
Labels
C-bug
Category: This is a bug.
F-return_position_impl_trait_in_trait
`#![feature(return_position_impl_trait_in_trait)]`
requires-nightly
This issue requires a nightly compiler in some way.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: Successful compilation, since
fn_2
does not require thatSelf: Sized
, which is the case invec
.Instead, this happened: I got the following compiler error:
Even though
fn_2
does not require thatSelf: Sized
. I'm not really sure that this is the intended behavior of this feature, since changingimpl OtherTrait
to any concrete type would allow this to compile just fine.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: