Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#101682 - compiler-errors:rpitit-encode, r=fee…
…1-dead Only encode return-position `impl Trait` in trait when parent function has a default body Semi-blocked on rust-lang#101679, because I can't currently write a test for when we _should_ encode the type of the return-position `impl Trait` in trait, which is when a trait has a default function body, like so: ```rust trait Foo { fn bar() -> impl Sized { } } ``` Though this can land even without rust-lang#101679, since it does prevent ICEs from occuring any time you use `#![feature(return_position_impl_trait_in_trait)]` in a library, which is kind annoying.
- Loading branch information