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
This fails because || () is inferred as fn@(). fn unique() -> fn~ { ret || (); } works as expected. Test case will be in run-pass/newlambdas-ret-infer2.
The text was updated successfully, but these errors were encountered:
Handle trait alias definitions
Part of rust-lang#2773
This PR adds a bunch of structs and enum variants for trait aliases. Trait aliases should be handled as an independent item because they are semantically distinct from traits.
I basically started by adding `TraitAlias{Id, Loc}` to `hir_def::item_tree` and iterated adding necessary stuffs until compiler stopped complaining what's missing. Let me know if there's still anything I need to add.
I'm opening up this PR for early review and stuff. I'm planning to add tests for IDE functionalities in this PR, but not type-related support, for which I put FIXME notes.
celinval
added a commit
to celinval/rust-dev
that referenced
this issue
Jun 4, 2024
This fails because
|| ()
is inferred asfn@()
.fn unique() -> fn~ { ret || (); }
works as expected. Test case will be in run-pass/newlambdas-ret-infer2.The text was updated successfully, but these errors were encountered: