Skip to content

Commit 337dee4

Browse files
committed
Remove Fn trait + impl Trait rustdoc tests
1 parent 517db79 commit 337dee4

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/test/rustdoc/issue-43869.rs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,15 @@ pub fn test_44731_1() -> Result<Box<impl Clone>, ()> {
5555
Ok(Box::new(j()))
5656
}
5757

58-
59-
pub fn test_44731_3() -> Box<Fn() -> impl Clone> {
60-
Box::new(|| 0u32)
61-
}
58+
// NOTE these involve Fn sugar, where impl Trait is disallowed for now, see issue #45994
59+
//
60+
//pub fn test_44731_2() -> Box<Fn(impl Clone)> {
61+
// Box::new(|_: u32| {})
62+
//}
63+
//
64+
//pub fn test_44731_3() -> Box<Fn() -> impl Clone> {
65+
// Box::new(|| 0u32)
66+
//}
6267

6368
pub fn test_44731_4() -> Box<Iterator<Item=impl Clone>> {
6469
Box::new(g())
@@ -75,5 +80,4 @@ pub fn test_44731_4() -> Box<Iterator<Item=impl Clone>> {
7580
// @has issue_43869/fn.o.html
7681
// @has issue_43869/fn.test_44731_0.html
7782
// @has issue_43869/fn.test_44731_1.html
78-
// @has issue_43869/fn.test_44731_3.html
7983
// @has issue_43869/fn.test_44731_4.html

0 commit comments

Comments
 (0)