Closed
Description
The following code compiles and is unsound:
I believe this is due to the fact that we compute implied bounds for return types? Ironically, I did write about this some months ago, as a reminder to myself for the implementation of the implied bounds RFC:
https://gist.github.com/scalexm/cf32cea831a5d8193fa8a484099b71a2
I wasn’t aware this bug was actually existing in Rust already.