-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
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
ICE when attempting to explicitly type function pointer variable #24322
Comments
I attempted a small search for similar issues, but didn't quite know what to look for. In any event, I was unable to identify a duplicate :) I am currently trying to build rustc from source to see if I will be able to get a backtrace that way. |
I have now been able to try with a locally compiled
Backtrace:
|
This issue may be related to a similar issue I also bumped into: #24327 |
Previously it also tried to find out the best way to translate the expression, which could ICE during type-checking. Fixes rust-lang#23173 Fixes rust-lang#24322 Fixes rust-lang#25757
I get an internal compiler error on the input detailed below.
I tried this code:
I expected to see this happen: Maybe it should work like
let x = &B::func
, but I'm guessing that I have some error here. I get an error message when I try a variant of the above;This gives me the compile time error:
Instead, this happened:
Meta
rustc --version --verbose
:From the
rust-nightly
package here: https://launchpad.net/~hansjorg/+archive/ubuntu/rustBacktrace:
Running
RUST_BACKTRACE=1 rustc bug.rs
gives me only this output:The text was updated successfully, but these errors were encountered: