]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/or_fun_call.rs
Rollup merge of #5425 - xiongmao86:issue5367, r=flip1995
[rust.git] / tests / ui / or_fun_call.rs
index 78bcf896ec1dc1e2a93501bf8e14d53a3cd0bcdb..7599b945a9137ed63a21cc06ad70aeed0f5f6532 100644 (file)
@@ -55,8 +55,6 @@ fn make<T>() -> T {
     let with_vec = Some(vec![1]);
     with_vec.unwrap_or(vec![]);
 
-    // FIXME #944: ~|SUGGESTION with_vec.unwrap_or_else(|| vec![]);
-
     let without_default = Some(Foo);
     without_default.unwrap_or(Foo::new());
 
@@ -99,7 +97,6 @@ fn test_or_with_ctors() {
         .or(Some(Bar(b, Duration::from_secs(2))));
 }
 
-
 // Issue 4514 - early return
 fn f() -> Option<()> {
     let a = Some(1);
@@ -110,5 +107,4 @@ fn f() -> Option<()> {
     Some(())
 }
 
-
 fn main() {}