parent
6c6b3027ef
commit
7b53f69674
@ -869,8 +869,6 @@ pub fn into_inner(self) -> Option<Box<dyn error::Error + Send + Sync>> {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(io_error_downcast)]
|
||||
///
|
||||
/// use std::fmt;
|
||||
/// use std::io;
|
||||
/// use std::error::Error;
|
||||
@ -923,7 +921,7 @@ pub fn into_inner(self) -> Option<Box<dyn error::Error + Send + Sync>> {
|
||||
/// assert!(io_error.raw_os_error().is_none());
|
||||
/// # }
|
||||
/// ```
|
||||
#[unstable(feature = "io_error_downcast", issue = "99262")]
|
||||
#[stable(feature = "io_error_downcast", since = "CURRENT_RUSTC_VERSION")]
|
||||
pub fn downcast<E>(self) -> result::Result<E, Self>
|
||||
where
|
||||
E: error::Error + Send + Sync + 'static,
|
||||
|
Loading…
Reference in New Issue
Block a user