summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/return-type-notation/supertrait-bound.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/async-await/return-type-notation/supertrait-bound.rs')
-rw-r--r--tests/ui/async-await/return-type-notation/supertrait-bound.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/async-await/return-type-notation/supertrait-bound.rs b/tests/ui/async-await/return-type-notation/supertrait-bound.rs
new file mode 100644
index 000000000..19bcfe304
--- /dev/null
+++ b/tests/ui/async-await/return-type-notation/supertrait-bound.rs
@@ -0,0 +1,11 @@
+// check-pass
+
+#![feature(return_position_impl_trait_in_trait, return_type_notation)]
+//~^ WARN the feature `return_type_notation` is incomplete and may not be safe to use
+
+trait IntFactory {
+ fn stream(&self) -> impl Iterator<Item = i32>;
+}
+trait SendIntFactory: IntFactory<stream(): Send> + Send {}
+
+fn main() {}