• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 use pin_project_lite::pin_project;
2 enum Enum<T, U> {
3     Struct { pinned: T, unpinned: U },
4     Unit,
5 }
6 #[allow(single_use_lifetimes)]
7 #[allow(clippy::unknown_clippy_lints)]
8 #[allow(clippy::used_underscore_binding)]
9 const _: () = {
10     impl<T, U> Enum<T, U> {}
11     #[allow(non_snake_case)]
12     struct __Origin<'__pin, T, U> {
13         __dummy_lifetime: ::pin_project_lite::__private::PhantomData<&'__pin ()>,
14         Struct: (T, ::pin_project_lite::__private::AlwaysUnpin<U>),
15         Unit: (),
16     }
17     impl<'__pin, T, U> ::pin_project_lite::__private::Unpin for Enum<T, U> where
18         __Origin<'__pin, T, U>: ::pin_project_lite::__private::Unpin
19     {
20     }
21     trait MustNotImplDrop {}
22     #[allow(clippy::drop_bounds, drop_bounds)]
23     impl<T: ::pin_project_lite::__private::Drop> MustNotImplDrop for T {}
24     impl<T, U> MustNotImplDrop for Enum<T, U> {}
25 };
main()26 fn main() {}
27