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:
commit
d41520052e
4 changed files with 39 additions and 21 deletions
|
@ -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(); }
|
Loading…
Add table
Add a link
Reference in a new issue