use name_it::name_it; #[name_it(Foo)] async fn foo() { } impl Unpin for Foo<'_> {} fn assert_unpin(_: impl Unpin) {} fn main() { assert_unpin(foo()); }