File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ fn test_redundant_closure_with_another_closure() {
178
178
let a = Some(1u8).map(closure);
179
179
}
180
180
181
- fn make_lazy(f: fn () -> fn(u8) -> u8) -> impl Fn(u8) -> u8 {
181
+ fn make_lazy(f: impl Fn () -> fn(u8) -> u8) -> impl Fn(u8) -> u8 {
182
182
// Currently f is called when result of make_lazy is called.
183
183
// If the closure is removed, f will be called when make_lazy itself is
184
184
// called. This changes semantics, so the closure must stay.
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ fn test_redundant_closure_with_another_closure() {
178
178
let a = Some ( 1u8 ) . map ( |a| closure ( a) ) ;
179
179
}
180
180
181
- fn make_lazy ( f : fn ( ) -> fn ( u8 ) -> u8 ) -> impl Fn ( u8 ) -> u8 {
181
+ fn make_lazy ( f : impl Fn ( ) -> fn ( u8 ) -> u8 ) -> impl Fn ( u8 ) -> u8 {
182
182
// Currently f is called when result of make_lazy is called.
183
183
// If the closure is removed, f will be called when make_lazy itself is
184
184
// called. This changes semantics, so the closure must stay.
You can’t perform that action at this time.
0 commit comments