Remove Fn trait + impl Trait rustdoc tests

This commit is contained in:
Christopher Vittal 2017-11-14 21:24:43 -05:00
parent 517db79c1f
commit 337dee4c80
1 changed files with 9 additions and 5 deletions

View File

@ -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