Auto merge of #27278 - thepowersgang:result-expect-issue, r=alexcrichton

This commit is contained in:
bors 2015-07-27 13:24:34 +00:00
commit eefd6b2c12

View File

@ -744,7 +744,7 @@ impl<T, E: fmt::Debug> Result<T, E> {
/// x.expect("Testing expect"); // panics with `Testing expect: emergency failure`
/// ```
#[inline]
#[unstable(feature = "result_expect", reason = "newly introduced")]
#[unstable(feature = "result_expect", reason = "newly introduced", issue = "27277")]
pub fn expect(self, msg: &str) -> T {
match self {
Ok(t) => t,