summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generic-associated-types/auxiliary/foo_defn.rs
blob: 21a9b3b89a8dc7a31ee11d570036280e45127ae5 (plain)
1
2
3
4
5
6
use std::{future::Future, pin::Pin};

pub trait Foo {
    type Bar: AsRef<()>;
    fn foo(&self) -> Pin<Box<dyn Future<Output = Self::Bar> + '_>>;
}