Skip to content

Commit

Permalink
Remove Fn trait + impl Trait rustdoc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvittal committed Nov 15, 2017
1 parent 517db79 commit 337dee4
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/test/rustdoc/issue-43869.rs
Expand Up @@ -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())
Expand All @@ -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

0 comments on commit 337dee4

Please sign in to comment.