// run-pass //! Regression test for #58311, regarding the usage of Fn types in drop impls // All of this Drop impls should compile. #[allow(dead_code)] struct S [u8; 1]>(F); impl [u8; 1]> Drop for S { fn drop(&mut self) {} } #[allow(dead_code)] struct P [A; 10]>(F); impl [A; 10]> Drop for P { fn drop(&mut self) {} } fn main() {}