]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/checked_unwrap/simple_conditionals.rs
Move test for issue 5579 under tests/ui/crashes
[rust.git] / tests / ui / checked_unwrap / simple_conditionals.rs
index 49794e0c2419e649b77b5b69c8a43302b33644dc..3e7b4b390bad48581244b7f66c666968af5db293 100644 (file)
@@ -78,24 +78,3 @@ fn main() {
 
     assert!(x.is_ok(), "{:?}", x.unwrap_err()); // ok, it's a common test pattern
 }
-
-mod issue_5579 {
-    trait IsErr {
-        fn is_err(&self, err: &str) -> bool;
-    }
-
-    impl<T> IsErr for Option<T> {
-        fn is_err(&self, _err: &str) -> bool {
-            true
-        }
-    }
-
-    #[allow(unused)]
-    fn boom() {
-        let t = Some(1);
-
-        if t.is_err("") {
-            t.unwrap();
-        }
-    }
-}