1 error[E0697]: closures cannot be static
2 --> $DIR/issue-52432.rs:4:12
4 LL | [(); &(static |x| {}) as *const _ as usize];
7 error[E0697]: closures cannot be static
8 --> $DIR/issue-52432.rs:7:12
10 LL | [(); &(static || {}) as *const _ as usize];
13 error[E0282]: type annotations needed
14 --> $DIR/issue-52432.rs:4:20
16 LL | [(); &(static |x| {}) as *const _ as usize];
17 | ^ consider giving this closure parameter a type
19 error[E0080]: evaluation of constant value failed
20 --> $DIR/issue-52432.rs:7:10
22 LL | [(); &(static || {}) as *const _ as usize];
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot cast pointer to integer because it was not created by cast from integer
25 error: aborting due to 4 previous errors
27 Some errors have detailed explanations: E0080, E0282, E0697.
28 For more information about an error, try `rustc --explain E0080`.