2022-09-05 21:58:12 -03:00
|
|
|
error[E0782]: trait objects must include the `dyn` keyword
|
|
|
|
--> $DIR/generic-with-implicit-hrtb-without-dyn.rs:6:24
|
|
|
|
|
|
|
|
|
LL | fn ice() -> impl AsRef<Fn(&())> {
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
help: add `dyn` keyword before this trait
|
|
|
|
|
|
2022-09-11 19:19:07 +00:00
|
|
|
LL | fn ice() -> impl AsRef<dyn Fn(&())> {
|
|
|
|
| +++
|
2022-09-05 21:58:12 -03:00
|
|
|
|
2022-11-11 10:29:27 +00:00
|
|
|
error: aborting due to previous error
|
2022-09-05 21:58:12 -03:00
|
|
|
|
2022-11-11 10:29:27 +00:00
|
|
|
For more information about this error, try `rustc --explain E0782`.
|