blob: d719bf1b97161668d5fb305df2f6e81448788f70 [file] [log] [blame]
#![feature(const_raw_ptr_to_usize_cast)]
fn main() {
[(); &(static |x| {}) as *const _ as usize];
//~^ ERROR: closures cannot be static
//~| ERROR: type annotations needed
[(); &(static || {}) as *const _ as usize];
//~^ ERROR: closures cannot be static
//~| ERROR evaluation of constant value failed
}