1 warning: the feature `generic_associated_types` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/issue-68642-broken-llvm-ir.rs:3:12
4 LL | #![feature(generic_associated_types)]
5 | ^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `#[warn(incomplete_features)]` on by default
8 = note: see issue #44265 <https://github.com/rust-lang/rust/issues/44265> for more information
10 error[E0277]: expected a `Fn<()>` closure, found `T`
11 --> $DIR/issue-68642-broken-llvm-ir.rs:15:5
13 LL | type F<'a>: Fn() -> u32;
14 | ------------------------ required by `Fun::F`
16 LL | type F<'a> = Self;
17 | ^^^^^^^^^^^^^^^^^^ expected an `Fn<()>` closure, found `T`
19 = note: wrap the `T` in a closure with no arguments: `|| { /* code */ }`
20 help: consider restricting type parameter `T`
22 LL | impl<T: Fn<()>> Fun for T {
25 error: aborting due to previous error; 1 warning emitted
27 For more information about this error, try `rustc --explain E0277`.