1 error[E0277]: expected a `Fn<()>` closure, found `T`
2 --> $DIR/issue-68644-codegen-selection.rs:14:5
4 LL | type F<'a> = Self;
5 | ^^^^^^^^^^^^^^^^^^ expected an `Fn<()>` closure, found `T`
7 = note: wrap the `T` in a closure with no arguments: `|| { /* code */ }`
8 note: required by a bound in `Fun::F`
9 --> $DIR/issue-68644-codegen-selection.rs:6:17
11 LL | type F<'a>: Fn() -> u32;
12 | ^^^^^^^^^^^ required by this bound in `Fun::F`
13 help: consider restricting type parameter `T`
15 LL | impl<T: std::ops::Fn<()>> Fun for T {
18 error: aborting due to previous error
20 For more information about this error, try `rustc --explain E0277`.