about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristopher Vittal <christopher.vittal@gmail.com>2017-11-14 21:24:43 -0500
committerChristopher Vittal <christopher.vittal@gmail.com>2017-11-15 15:46:01 -0500
commit337dee4c80d5c399981597defdf157e007f20a92 (patch)
treefca6330774b129b4233ab52620c0c5fdca52d5df
parent517db79c1f0c7d68f67045b19e19cbb369d2b7b8 (diff)
downloadrust-337dee4c80d5c399981597defdf157e007f20a92.tar.gz
rust-337dee4c80d5c399981597defdf157e007f20a92.zip
Remove Fn trait + impl Trait rustdoc tests
-rw-r--r--src/test/rustdoc/issue-43869.rs14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/test/rustdoc/issue-43869.rs b/src/test/rustdoc/issue-43869.rs
index 70a5a7a3f7a..554c71500cc 100644
--- a/src/test/rustdoc/issue-43869.rs
+++ b/src/test/rustdoc/issue-43869.rs
@@ -55,10 +55,15 @@ pub fn test_44731_1() -> Result<Box<impl Clone>, ()> {
     Ok(Box::new(j()))
 }
 
-
-pub fn test_44731_3() -> Box<Fn() -> impl Clone> {
-    Box::new(|| 0u32)
-}
+// NOTE these involve Fn sugar, where impl Trait is disallowed for now, see issue #45994
+//
+//pub fn test_44731_2() -> Box<Fn(impl Clone)> {
+//    Box::new(|_: u32| {})
+//}
+//
+//pub fn test_44731_3() -> Box<Fn() -> impl Clone> {
+//    Box::new(|| 0u32)
+//}
 
 pub fn test_44731_4() -> Box<Iterator<Item=impl Clone>> {
     Box::new(g())
@@ -75,5 +80,4 @@ pub fn test_44731_4() -> Box<Iterator<Item=impl Clone>> {
 // @has issue_43869/fn.o.html
 // @has issue_43869/fn.test_44731_0.html
 // @has issue_43869/fn.test_44731_1.html
-// @has issue_43869/fn.test_44731_3.html
 // @has issue_43869/fn.test_44731_4.html