]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-22034.stderr
Auto merge of #104013 - notriddle:notriddle/rustdoc-sizeof, r=GuillaumeGomez
[rust.git] / src / test / ui / issues / issue-22034.stderr
1 error[E0277]: expected a `Fn<()>` closure, found `()`
2   --> $DIR/issue-22034.rs:8:16
3    |
4 LL |         &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 `()` to the object type `dyn Fn()`
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0277`.