2 //! Regression test for #58311, regarding the usage of Fn types in drop impls
4 // All of this Drop impls should compile.
7 struct S<F: Fn() -> [u8; 1]>(F);
9 impl<F: Fn() -> [u8; 1]> Drop for S<F> {
14 struct P<A, F: FnOnce() -> [A; 10]>(F);
16 impl<A, F: FnOnce() -> [A; 10]> Drop for P<A, F> {