aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor/tests/ui/impl_trait_nested.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-executor/tests/ui/impl_trait_nested.rs')
-rw-r--r--embassy-executor/tests/ui/impl_trait_nested.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/embassy-executor/tests/ui/impl_trait_nested.rs b/embassy-executor/tests/ui/impl_trait_nested.rs
new file mode 100644
index 000000000..07442b8fa
--- /dev/null
+++ b/embassy-executor/tests/ui/impl_trait_nested.rs
@@ -0,0 +1,8 @@
1#![cfg_attr(feature = "nightly", feature(impl_trait_in_assoc_type))]
2
3struct Foo<T>(T);
4
5#[embassy_executor::task]
6async fn foo(_x: Foo<impl Sized + 'static>) {}
7
8fn main() {}