2023-10-04 20:50:00 -05:00
|
|
|
error[E0277]: expected a `Fn(&'w ())` closure, found `fn(&'w ())`
|
2023-03-06 17:30:34 -06:00
|
|
|
--> $DIR/fn-ptr.rs:12:5
|
|
|
|
|
|
|
|
|
LL | ice();
|
2023-10-04 20:50:00 -05:00
|
|
|
| ^^^ expected an `Fn(&'w ())` closure, found `fn(&'w ())`
|
2023-03-06 17:30:34 -06:00
|
|
|
|
|
|
|
|
= help: the trait `for<'w> Fn<(&'w (),)>` is not implemented for `fn(&'w ())`
|
|
|
|
note: required by a bound in `ice`
|
|
|
|
--> $DIR/fn-ptr.rs:7:25
|
|
|
|
|
|
|
|
|
LL | fn ice()
|
|
|
|
| --- required by a bound in this function
|
|
|
|
LL | where
|
|
|
|
LL | for<'w> fn(&'w ()): Fn(&'w ()),
|
|
|
|
| ^^^^^^^^^^ required by this bound in `ice`
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2023-03-06 17:30:34 -06:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|