]> git.lizzy.rs Git - rust.git/blobdiff - library/core/tests/result.rs
Rollup merge of #101018 - notriddle:notriddle/item-right-docblock-short, r=GuillaumeGomez
[rust.git] / library / core / tests / result.rs
index 103e8cc3a96facada05da2bd5f1afba39c288613..50926da3ce7992f5c610431b2afebd0a00c7b854 100644 (file)
@@ -95,15 +95,6 @@ fn test_unwrap_or() {
     assert_eq!(ok_err.unwrap_or(50), 50);
 }
 
-#[test]
-fn test_ok_or_err() {
-    let ok: Result<isize, isize> = Ok(100);
-    let err: Result<isize, isize> = Err(200);
-
-    assert_eq!(ok.into_ok_or_err(), 100);
-    assert_eq!(err.into_ok_or_err(), 200);
-}
-
 #[test]
 fn test_unwrap_or_else() {
     fn handler(msg: &'static str) -> isize {