mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
auto merge of #8404 : stepancheg/rust/zero-unit-inline, r=alexcrichton
Follow-up to #8155
This commit is contained in:
@@ -49,7 +49,9 @@ fn equals(&self, _other: &()) -> bool { true }
|
||||
|
||||
#[cfg(not(test))]
|
||||
impl Zero for () {
|
||||
#[inline]
|
||||
fn zero() -> () { () }
|
||||
#[inline]
|
||||
fn is_zero(&self) -> bool { true }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user