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