]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/generic-with-implicit-hrtb-without-dyn.edition2015.stderr
Rollup merge of #98441 - calebzulawski:simd_as, r=oli-obk
[rust.git] / src / test / ui / impl-trait / generic-with-implicit-hrtb-without-dyn.edition2015.stderr
1 error[E0277]: the trait bound `(): AsRef<(dyn for<'r> Fn(&'r ()) + 'static)>` is not satisfied
2   --> $DIR/generic-with-implicit-hrtb-without-dyn.rs:6:13
3    |
4 LL | fn ice() -> impl AsRef<Fn(&())> {
5    |             ^^^^^^^^^^^^^^^^^^^ the trait `AsRef<(dyn for<'r> Fn(&'r ()) + 'static)>` is not implemented for `()`
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0277`.