summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-22034.stderr
blob: b32de5b24b924f7eb74e8be819b28684c1353aec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error[E0277]: expected a `Fn<()>` closure, found `()`
  --> $DIR/issue-22034.rs:8:16
   |
LL |         &mut *(ptr as *mut dyn Fn())
   |                ^^^ expected an `Fn<()>` closure, found `()`
   |
   = help: the trait `Fn<()>` is not implemented for `()`
   = note: wrap the `()` in a closure with no arguments: `|| { /* code */ }`
   = note: required for the cast from `()` to the object type `dyn Fn()`

error: aborting due to previous error

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