summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/generic-with-implicit-hrtb-without-dyn.edition2021.stderr
blob: 30fbba168689be02fd3588d9646ce5772e6ddaa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 previous error

For more information about this error, try `rustc --explain E0782`.