-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
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 _;
Metadata
Metadata
Assignees
Labels
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.