1 #![feature(untagged_unions)]
3 #![warn(clippy::expl_impl_clone_on_copy)]
9 fn clone(&self) -> Self {
14 // looks like unions don't support deriving Clone for now
20 impl Clone for Union {
21 fn clone(&self) -> Self {
32 impl<'a> Clone for Lt<'a> {
33 fn clone(&self) -> Self {
38 // Ok, `Clone` cannot be derived because of the big array
44 impl Clone for BigArray {
45 fn clone(&self) -> Self {
50 // Ok, function pointers are not always Clone
56 impl Clone for FnPtr {
57 fn clone(&self) -> Self {
68 impl<T> Clone for Generic<T> {
69 fn clone(&self) -> Self {