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
Deref is not well integrated into typeck, all derefs must be eagerly checked causing problems even in a simpe program such as:
use std::sync::Arc;fnmain(){letmut a = Default::default();// Works if the lines are swapped.let b = *a;
a = Arc::new(0);}
The type of a will not be inferred because derefs error if they find a type variable. There are probably good reasons of why this difficult to support, but hopefully chalk has a better chance at supporting derefs as obligations. I'll start by implementing Deref as domain goal.
The text was updated successfully, but these errors were encountered:
Deref is not well integrated into typeck, all derefs must be eagerly checked causing problems even in a simpe program such as:
The type of
a
will not be inferred because derefs error if they find a type variable. There are probably good reasons of why this difficult to support, but hopefully chalk has a better chance at supporting derefs as obligations. I'll start by implementingDeref
as domain goal.The text was updated successfully, but these errors were encountered: