Add doc comment for impl From<LayoutError> for TryReserveError

This commit is contained in:
Michael Howell 2021-07-06 14:44:18 -07:00
parent 8649737bee
commit a151982af3

View File

@ -83,6 +83,7 @@ pub enum TryReserveError {
#[unstable(feature = "try_reserve", reason = "new API", issue = "48043")]
impl From<LayoutError> for TryReserveError {
/// Always evaluates to [`TryReserveError::CapacityOverflow`].
#[inline]
fn from(_: LayoutError) -> Self {
TryReserveError::CapacityOverflow