We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following code:
enum X<T> { Some(*T) } fn f<T>() -> *T { match *(null as *X<T>) { Some(x) => null as *T, } }
fails with:
task '<main>' failed at 'Type is not fully constrained: <unconstrained>', src/target/ccross.rs:436
If the cast of null to *T is removed, it works.
null
*T
The text was updated successfully, but these errors were encountered:
Another way to trigger what I assume is the same bug:
fn f<T>() -> *T { null } fn g<T>() -> *T { f() }
Sorry, something went wrong.
No branches or pull requests
The following code:
fails with:
If the cast of
null
to*T
is removed, it works.The text was updated successfully, but these errors were encountered: