File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -55,10 +55,15 @@ pub fn test_44731_1() -> Result<Box<impl Clone>, ()> {
55
55
Ok ( Box :: new ( j ( ) ) )
56
56
}
57
57
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
+ //}
62
67
63
68
pub fn test_44731_4 ( ) -> Box < Iterator < Item =impl Clone > > {
64
69
Box :: new ( g ( ) )
@@ -75,5 +80,4 @@ pub fn test_44731_4() -> Box<Iterator<Item=impl Clone>> {
75
80
// @has issue_43869/fn.o.html
76
81
// @has issue_43869/fn.test_44731_0.html
77
82
// @has issue_43869/fn.test_44731_1.html
78
- // @has issue_43869/fn.test_44731_3.html
79
83
// @has issue_43869/fn.test_44731_4.html
You can’t perform that action at this time.
0 commit comments