Rollup merge of #137458 - compiler-errors:render-fn, r=fmease

Fix missing self subst when rendering `impl Fn*<T>` with no output type

r? `@fmease` or reassign

Fixes #133597
cc #137456
This commit is contained in:
Jacob Pratt 2025-02-23 02:44:20 -05:00 committed by GitHub
commit d41520052e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 39 additions and 21 deletions

View file

@ -1,11 +0,0 @@
//@ known-bug: #133597
pub trait Foo2 {
fn boxed<'a: 'a>() -> impl Sized + FnOnce<()>;
}
impl Foo2 for () {}
fn f() -> impl FnOnce<()> { || () }
fn main() { () = f(); }