Add/Modify tests for argument position impl Trait
This commit is contained in:
parent
bdff9463a0
commit
06dff80061
6 changed files with 160 additions and 22 deletions
|
|
@ -55,9 +55,6 @@ pub fn test_44731_1() -> Result<Box<impl Clone>, ()> {
|
|||
Ok(Box::new(j()))
|
||||
}
|
||||
|
||||
pub fn test_44731_2() -> Box<Fn(impl Clone)> {
|
||||
Box::new(|_: u32| {})
|
||||
}
|
||||
|
||||
pub fn test_44731_3() -> Box<Fn() -> impl Clone> {
|
||||
Box::new(|| 0u32)
|
||||
|
|
@ -78,6 +75,5 @@ 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_2.html
|
||||
// @has issue_43869/fn.test_44731_3.html
|
||||
// @has issue_43869/fn.test_44731_4.html
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue