You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A counterpart to #73 enabling negative bounds checking. Currently the impl in the compiler is being reworked to make use of the new trait solver (rust-lang/rust#112875). Despite the feature being unstable it would be great if MIR formality could model these rules.
Example
Negative bounds should only match on types which have negative trait impls. This example implements FooTrait for CoreStruct because CoreStruct implements !CoreTrait:
A counterpart to #73 enabling negative bounds checking. Currently the impl in the compiler is being reworked to make use of the new trait solver (rust-lang/rust#112875). Despite the feature being unstable it would be great if MIR formality could model these rules.
Example
Negative bounds should only match on types which have negative trait impls. This example implements
FooTrait
forCoreStruct
becauseCoreStruct
implements!CoreTrait
:note: When converting this into a test some assertion should be written to ensure that
CoreStruct
actually implementsFooTrait
.The text was updated successfully, but these errors were encountered: