2022-09-21 10:57:30 -05:00
|
|
|
error[E0277]: the trait bound `(): AsRef<(dyn for<'a> Fn(&'a ()) + 'static)>` is not satisfied
|
2022-09-05 19:58:12 -05:00
|
|
|
--> $DIR/generic-with-implicit-hrtb-without-dyn.rs:6:13
|
|
|
|
|
|
|
|
|
LL | fn ice() -> impl AsRef<Fn(&())> {
|
2022-09-21 10:57:30 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ the trait `AsRef<(dyn for<'a> Fn(&'a ()) + 'static)>` is not implemented for `()`
|
2022-09-05 19:58:12 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|