]> git.lizzy.rs Git - rust.git/blob - tests/ui/generic-associated-types/auxiliary/foo_defn.rs
Rollup merge of #106648 - Nilstrieb:poly-cleanup, r=compiler-errors
[rust.git] / tests / ui / generic-associated-types / auxiliary / foo_defn.rs
1 use std::{future::Future, pin::Pin};
2
3 pub trait Foo {
4     type Bar: AsRef<()>;
5     fn foo(&self) -> Pin<Box<dyn Future<Output = Self::Bar> + '_>>;
6 }