-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
the type of this value must be known in this context #20417
Comments
The fix for the ICE is in #20412, but the code will still not compile. This is because the |
Oh, I see, it was inferring based on the argument type, which is an associated type. Well, that also will not work -- if the argument is an associated type, we don't take it into account when selecting traits. We used to. That was issue #18437 |
Ah thanks @nikomatsakis for looking at this. Is there any way to get behavior similar to above now? |
This seems to work without any error: fn main() {
let d: Result<Dog, AnimalError> = Animal::new(&123);
let d1 = d.unwrap();
println!("{}",d1);
} |
Indeed, it works fine... this should be closed! |
This was working for me a few days ago, but seems to fail now due to an ICE.
Example
Trace
The text was updated successfully, but these errors were encountered: