summaryrefslogtreecommitdiffstats
path: root/tests/ui/generic-associated-types/auxiliary/foo_defn.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/generic-associated-types/auxiliary/foo_defn.rs')
-rw-r--r--tests/ui/generic-associated-types/auxiliary/foo_defn.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/generic-associated-types/auxiliary/foo_defn.rs b/tests/ui/generic-associated-types/auxiliary/foo_defn.rs
new file mode 100644
index 000000000..21a9b3b89
--- /dev/null
+++ b/tests/ui/generic-associated-types/auxiliary/foo_defn.rs
@@ -0,0 +1,6 @@
+use std::{future::Future, pin::Pin};
+
+pub trait Foo {
+ type Bar: AsRef<()>;
+ fn foo(&self) -> Pin<Box<dyn Future<Output = Self::Bar> + '_>>;
+}