From 337dee4c80d5c399981597defdf157e007f20a92 Mon Sep 17 00:00:00 2001 From: Christopher Vittal Date: Tue, 14 Nov 2017 21:24:43 -0500 Subject: [PATCH] Remove Fn trait + impl Trait rustdoc tests --- src/test/rustdoc/issue-43869.rs | 14 +++++++++----- 1 file 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, ()> { Ok(Box::new(j())) } - -pub fn test_44731_3() -> Box 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 { +// Box::new(|_: u32| {}) +//} +// +//pub fn test_44731_3() -> Box impl Clone> { +// Box::new(|| 0u32) +//} pub fn test_44731_4() -> Box> { Box::new(g()) @@ -75,5 +80,4 @@ pub fn test_44731_4() -> Box> { // @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