summaryrefslogtreecommitdiffstats
path: root/src/test/ui/impl-trait/in-trait/auxiliary
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/impl-trait/in-trait/auxiliary')
-rw-r--r--src/test/ui/impl-trait/in-trait/auxiliary/rpitit.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/impl-trait/in-trait/auxiliary/rpitit.rs b/src/test/ui/impl-trait/in-trait/auxiliary/rpitit.rs
new file mode 100644
index 000000000..74df300f8
--- /dev/null
+++ b/src/test/ui/impl-trait/in-trait/auxiliary/rpitit.rs
@@ -0,0 +1,11 @@
+#![feature(return_position_impl_trait_in_trait)]
+
+pub trait Foo {
+ fn bar() -> impl Sized;
+}
+
+pub struct Foreign;
+
+impl Foo for Foreign {
+ fn bar() {}
+}