summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/issues/issue-86642.stderr
blob: b6f8a54f35ae89efea4eca0f8e2ceaa1ceb01f8d (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 const types
  --> $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`.