mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-18 17:15:05 +00:00
23 lines
374 B
Rust
23 lines
374 B
Rust
|
use std::marker::PhantomData;
|
||
|
use std::fmt;
|
||
|
|
||
|
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() {}
|