impl Hash for !
This commit is contained in:
parent
5205ae8bdc
commit
570590f727
1 changed files with 7 additions and 0 deletions
|
|
@ -603,6 +603,13 @@ mod impls {
|
|||
}
|
||||
}
|
||||
|
||||
#[stable(feature = "never_hash", since = "1.29.0")]
|
||||
impl Hash for ! {
|
||||
fn hash<H: Hasher>(&self, _: &mut H) {
|
||||
*self
|
||||
}
|
||||
}
|
||||
|
||||
macro_rules! impl_hash_tuple {
|
||||
() => (
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue