]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-22034.stderr
Auto merge of #53080 - hermord:rc-opt, r=alexcrichton
[rust.git] / src / test / ui / issues / issue-22034.stderr
1 error[E0277]: the trait bound `(): std::ops::Fn<()>` is not satisfied
2   --> $DIR/issue-22034.rs:18:16
3    |
4 LL |         &mut *(ptr as *mut Fn())
5    |                ^^^ the trait `std::ops::Fn<()>` is not implemented for `()`
6    |
7    = note: required for the cast to the object type `dyn std::ops::Fn()`
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0277`.