rust/tests/ui/impl-trait/generic-with-implicit-hrtb-without-dyn.edition2015.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
424 B
Plaintext
Raw Normal View History

2022-09-21 10:57:30 -05:00
error[E0277]: the trait bound `(): AsRef<(dyn for<'a> Fn(&'a ()) + 'static)>` is not satisfied
--> $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 `()`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.