fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
512 B13 linesraw
1error[E0277]: expected a `Fn<()>` closure, found `()`
2  --> $DIR/issue-22034.rs:8:16
3   |
4LL |         &mut *(ptr as *mut dyn Fn())
5   |                ^^^ expected an `Fn<()>` closure, found `()`
6   |
7   = help: the trait `Fn<()>` is not implemented for `()`
8   = note: wrap the `()` in a closure with no arguments: `|| { /* code */ }`
9   = note: required for the cast from `*mut ()` to `*mut dyn Fn()`
10
11error: aborting due to previous error
12
13For more information about this error, try `rustc --explain E0277`.