//@ known-bug: #140303 //@compile-flags: -Zvalidate-mir use std::future::Future; async fn a() -> impl Sized { b(c) } async fn c(); // kaboom fn b(e: d) -> impl Sized where d: f, { || -> ::h { panic!() } } trait f { type h; } impl f for d where d: Fn() -> g, g: Future, { }