-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
impl SuperTrait for T: SubTrait does not work #71
Comments
It looks like this is an instance of #12 |
@mikeyhew Yes, this is somehow a known bug, because of implied bounds not being completely implemented at the moment. |
@scalexm what do you mean by "implied bounds"? |
I mean things like "if |
@scalexm the above code is accepted by chalk. I guess it just ignores it though? |
@scalexm I tried out your implied-bounds branch, but didn't notice any changes with the above code :/ |
@mikeyhew Yes by "not accepted" I meant "gives a wrong answer", sorry :) |
@scalexm Oh, I see... I saw that @nikomatsakis was reviewing it, and assumed it was otherwise good to go 😄 |
I'm gonna close this, since it is a duplicate of #12 |
@mikeyhew PS: it works now |
@scalexm Sweet! trait DynSized {}
trait Sized where Self: DynSized {}
impl<T> DynSized for T where T: Sized {}
struct i32 {}
impl Sized for i32 {}
// ?- i32: DynSized
// Unique; substitution [], lifetime constraints [] |
The following works in Rust, but not in Chalk:
For the goal
i32: DynSized
, Chalk currently returns "No possible solution", and it should return "Unique".The text was updated successfully, but these errors were encountered: