auto_traits + negative_impls not working as expected with associated types #87732
Labels
C-bug
Category: This is a bug.
F-auto_traits
`#![feature(auto_traits)]`
F-negative_impls
#![feature(negative_impls)]
Uh oh!
There was an error while loading. Please reload this page.
It's possible that this is working as designed or that I'm taking the wrong approach here, so apologies up front if that's the case.
I seem to be able to use the combination of
auto_traits
andnegative_impls
to implement traits in a way that is generic but polymorphic for generic types on concrete types, but not for associated types on traits.I would've expected that the compiler could tell that
Future<Output = String>
andFuture<Output = T>
were mutually exclusive, given thatT: NotString
.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: