1 use pin_project::pin_project;
2 # [pin (__private (! Unpin))]
3 struct TupleStruct<T, U>(#[pin] T, U);
4 #[allow(box_pointers)]
5 #[allow(deprecated)]
6 #[allow(explicit_outlives_requirements)]
7 #[allow(single_use_lifetimes)]
8 #[allow(unreachable_pub)]
9 #[allow(clippy::unknown_clippy_lints)]
10 #[allow(clippy::pattern_type_mismatch)]
11 #[allow(clippy::redundant_pub_crate)]
12 #[allow(clippy::semicolon_if_nothing_returned)]
13 #[allow(clippy::used_underscore_binding)]
14 const _: () = {
15     #[allow(box_pointers)]
16     #[allow(deprecated)]
17     #[allow(explicit_outlives_requirements)]
18     #[allow(single_use_lifetimes)]
19     #[allow(unreachable_pub)]
20     #[allow(clippy::unknown_clippy_lints)]
21     #[allow(clippy::pattern_type_mismatch)]
22     #[allow(clippy::redundant_pub_crate)]
23     #[allow(dead_code)]
24     #[allow(clippy::mut_mut)]
25     #[allow(clippy::type_repetition_in_bounds)]
26     struct __TupleStructProjection<'pin, T, U>(
27         ::pin_project::__private::Pin<&'pin mut (T)>,
28         &'pin mut (U),
29     )
30     where
31         TupleStruct<T, U>: 'pin;
32     #[allow(box_pointers)]
33     #[allow(deprecated)]
34     #[allow(explicit_outlives_requirements)]
35     #[allow(single_use_lifetimes)]
36     #[allow(unreachable_pub)]
37     #[allow(clippy::unknown_clippy_lints)]
38     #[allow(clippy::pattern_type_mismatch)]
39     #[allow(clippy::redundant_pub_crate)]
40     #[allow(dead_code)]
41     #[allow(clippy::ref_option_ref)]
42     #[allow(clippy::type_repetition_in_bounds)]
43     struct __TupleStructProjectionRef<'pin, T, U>(
44         ::pin_project::__private::Pin<&'pin (T)>,
45         &'pin (U),
46     )
47     where
48         TupleStruct<T, U>: 'pin;
49     impl<T, U> TupleStruct<T, U> {
project<'pin>( self: ::pin_project::__private::Pin<&'pin mut Self>, ) -> __TupleStructProjection<'pin, T, U>50         fn project<'pin>(
51             self: ::pin_project::__private::Pin<&'pin mut Self>,
52         ) -> __TupleStructProjection<'pin, T, U> {
53             unsafe {
54                 let Self(_0, _1) = self.get_unchecked_mut();
55                 __TupleStructProjection(::pin_project::__private::Pin::new_unchecked(_0), _1)
56             }
57         }
58         #[allow(clippy::missing_const_for_fn)]
project_ref<'pin>( self: ::pin_project::__private::Pin<&'pin Self>, ) -> __TupleStructProjectionRef<'pin, T, U>59         fn project_ref<'pin>(
60             self: ::pin_project::__private::Pin<&'pin Self>,
61         ) -> __TupleStructProjectionRef<'pin, T, U> {
62             unsafe {
63                 let Self(_0, _1) = self.get_ref();
64                 __TupleStructProjectionRef(::pin_project::__private::Pin::new_unchecked(_0), _1)
65             }
66         }
67     }
68     #[forbid(safe_packed_borrows)]
__assert_not_repr_packed<T, U>(this: &TupleStruct<T, U>)69     fn __assert_not_repr_packed<T, U>(this: &TupleStruct<T, U>) {
70         let _ = &this.0;
71         let _ = &this.1;
72     }
73     impl<'pin, T, U> ::pin_project::__private::Unpin for TupleStruct<T, U> where
74         ::pin_project::__private::Wrapper<'pin, ::pin_project::__private::PhantomPinned>:
75             ::pin_project::__private::Unpin
76     {
77     }
78     #[doc(hidden)]
79     unsafe impl<'pin, T, U> ::pin_project::UnsafeUnpin for TupleStruct<T, U> where
80         ::pin_project::__private::Wrapper<'pin, ::pin_project::__private::PhantomPinned>:
81             ::pin_project::__private::Unpin
82     {
83     }
84     trait TupleStructMustNotImplDrop {}
85     #[allow(clippy::drop_bounds, drop_bounds)]
86     impl<T: ::pin_project::__private::Drop> TupleStructMustNotImplDrop for T {}
87     impl<T, U> TupleStructMustNotImplDrop for TupleStruct<T, U> {}
88     #[doc(hidden)]
89     impl<T, U> ::pin_project::__private::PinnedDrop for TupleStruct<T, U> {
drop(self: ::pin_project::__private::Pin<&mut Self>)90         unsafe fn drop(self: ::pin_project::__private::Pin<&mut Self>) {}
91     }
92 };
main()93 fn main() {}
94