1 // regression test for #73816
2 // We handled bounds differently when `feature(generic_associated_types)` was enabled
5 // aux-build:foo_defn.rs
10 use std::{future::Future, pin::Pin};
14 impl Foo for FooImpl {
16 //~^ ERROR the trait bound `(): AsRef<()>` is not satisfied
17 fn foo(&self) -> Pin<Box<dyn Future<Output = Self::Bar> + '_>> {
26 async fn bar<F: Foo>(foo: &F) {
27 foo.foo().await.as_ref();
31 // futures::executor::block_on(foo());