mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-08 04:56:58 +00:00
15 lines
434 B
Plaintext
15 lines
434 B
Plaintext
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
|
|
|
|
|
LL | fn ice() -> impl AsRef<dyn Fn(&())> {
|
|
| +++
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0782`.
|