mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-10 05:53:10 +00:00
Add doc comment for impl From<LayoutError> for TryReserveError
This commit is contained in:
parent
8649737bee
commit
a151982af3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user