summaryrefslogtreecommitdiffstats
path: root/src/test/ui/impl-trait/issues/issue-86642.stderr
blob: 0ec118d5be80219b3bcae67d7a08ccf89ef66762 (plain)
1
2
3
4
5
6
7
8
9
error[E0562]: `impl Trait` only allowed in function and inherent method return types, not in type
  --> $DIR/issue-86642.rs:1:11
   |
LL | static x: impl Fn(&str) -> Result<&str, ()> = move |source| {
   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

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