2023-09-08 08:15:51 -05:00
|
|
|
#![allow(clippy::non_canonical_clone_impl)]
|
2023-06-11 02:46:28 -05:00
|
|
|
|
2018-01-11 03:28:42 -06:00
|
|
|
use std::fmt;
|
2018-12-09 16:26:16 -06:00
|
|
|
use std::marker::PhantomData;
|
2018-01-11 03:28:42 -06:00
|
|
|
|
|
|
|
pub struct Key<T> {
|
|
|
|
#[doc(hidden)]
|
|
|
|
pub __name: &'static str,
|
|
|
|
#[doc(hidden)]
|
|
|
|
pub __phantom: PhantomData<T>,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<T> Copy for Key<T> {}
|
|
|
|
|
|
|
|
impl<T> Clone for Key<T> {
|
|
|
|
fn clone(&self) -> Self {
|
|
|
|
Key {
|
|
|
|
__name: self.__name,
|
|
|
|
__phantom: self.__phantom,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|