Conversation
| use formality_prove::Env; | ||
| use formality_rust::{ | ||
| grammar::{Fn, FnBoundData}, | ||
| grammar::{Fn, FnBody, FnBoundData, MaybeFnBody}, |
There was a problem hiding this comment.
Ignore this, I'm making a test :)
|
Revisited this, I think there are still more stuff needed to properly model this. It might be ok to just rebase and land this, but the syntax we use here is definitely not the friendliest to the reader >:) This has happened a while ago, so to recap, we defined the subset relationship between How the test currently looks like for const fn foo<T>()
where
T: Default,
{
<T as Default>::default();
}is fn foo() -> () random_keyword do const {
(AssociatedEffect(Default()))
}Improvements
const fn default<T: [const] Default>() -> T {
T::default()
}but we might need to do a small refactoring to make this happen. |
|
@rustbot blocked |
|
Close this until there is further plan to unblock this. |
Opened a draft so it is easier to fetch and push to this branch.