Closed
Description
This works in stable, beta and nightly:
let x: *mut () = (0 as *const usize) as *const _ as *mut _;
This only works in stable:
const x: *mut () = (0 as *const usize) as *const _ as *mut _;
But in beta and nightly results in:
<anon>:2:47: 2:55 error: unable to infer enough type information about `_`; type annotations or generic parameter binding required [E0282]
<anon>:2 const x: *mut () = (0 as *const usize) as *const _ as *mut _;