1 error[E0277]: the trait bound `[closure@$DIR/issue-102985.rs:4:23: 4:25]: ~const Fn<()>` is not satisfied
2 --> $DIR/issue-102985.rs:5:14
5 | ^^^ expected an `Fn<()>` closure, found `[closure@$DIR/issue-102985.rs:4:23: 4:25]`
7 = help: the trait `~const Fn<()>` is not implemented for closure `[closure@$DIR/issue-102985.rs:4:23: 4:25]`
8 note: the trait `Fn<()>` is implemented for `[closure@$DIR/issue-102985.rs:4:23: 4:25]`, but that implementation is not `const`
9 --> $DIR/issue-102985.rs:5:14
13 = note: wrap the `[closure@$DIR/issue-102985.rs:4:23: 4:25]` in a closure with no arguments: `|| { /* code */ }`
15 error[E0277]: the trait bound `[closure@$DIR/issue-102985.rs:4:23: 4:25]: ~const Fn<()>` is not satisfied
16 --> $DIR/issue-102985.rs:5:14
19 | ^^^ expected an `Fn<()>` closure, found `[closure@$DIR/issue-102985.rs:4:23: 4:25]`
21 = help: the trait `~const Fn<()>` is not implemented for closure `[closure@$DIR/issue-102985.rs:4:23: 4:25]`
22 note: the trait `Fn<()>` is implemented for `[closure@$DIR/issue-102985.rs:4:23: 4:25]`, but that implementation is not `const`
23 --> $DIR/issue-102985.rs:5:14
27 = note: wrap the `[closure@$DIR/issue-102985.rs:4:23: 4:25]` in a closure with no arguments: `|| { /* code */ }`
29 error[E0015]: cannot call non-const closure in constants
30 --> $DIR/issue-102985.rs:5:14
35 = note: closures need an RFC before allowed to be called in constants
36 = note: calls in constants are limited to constant functions, tuple structs and tuple variants
38 error: aborting due to 3 previous errors
40 Some errors have detailed explanations: E0015, E0277.
41 For more information about an error, try `rustc --explain E0015`.