Skip to content

Commit

Permalink
Stablise io_error_downcast
Browse files Browse the repository at this point in the history
Tracking issue rust-lang#99262
  • Loading branch information
NobodyXu authored Apr 17, 2024
1 parent 6c6b302 commit 7b53f69
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions library/std/src/io/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -869,8 +869,6 @@ impl Error {
/// # Examples
///
/// ```
/// #![feature(io_error_downcast)]
///
/// use std::fmt;
/// use std::io;
/// use std::error::Error;
Expand Down Expand Up @@ -923,7 +921,7 @@ impl Error {
/// 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,
Expand Down

0 comments on commit 7b53f69

Please sign in to comment.