Skip to content

Commit 65b7c4e

Browse files
aturonalexcrichton
authored andcommitted
Stabilize expect_err feature, closes #39041
1 parent 33a5665 commit 65b7c4e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libcore/result.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -803,12 +803,11 @@ impl<T: fmt::Debug, E> Result<T, E> {
803803
/// Basic usage:
804804
///
805805
/// ```{.should_panic}
806-
/// # #![feature(result_expect_err)]
807806
/// let x: Result<u32, &str> = Ok(10);
808807
/// x.expect_err("Testing expect_err"); // panics with `Testing expect_err: 10`
809808
/// ```
810809
#[inline]
811-
#[unstable(feature = "result_expect_err", issue = "39041")]
810+
#[stable(feature = "result_expect_err", since = "1.17.0")]
812811
pub fn expect_err(self, msg: &str) -> E {
813812
match self {
814813
Ok(t) => unwrap_failed(msg, t),

0 commit comments

Comments
 (0)