Make AllocErr a zero-size unit struct
This commit is contained in:
@@ -243,7 +243,7 @@ impl Error for ! {
|
||||
issue = "32838")]
|
||||
impl Error for AllocErr {
|
||||
fn description(&self) -> &str {
|
||||
AllocErr::description(self)
|
||||
"memory allocation failed"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user