-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 with static function pointer to generic instantiation of enum constructor #13972
Comments
This errors with this stack trace:
Which is very similar to the one in #10176. |
/cc @eddyb |
This compiles just fine today. |
@steveklabnik Thanks! There's a bunch of globals-related issues that @Twisol cc'd me on because of #20295 which might have fixed them, but I don't know any easy way to find them again. |
There is a FIXME related to this issue, |
@Eh2406 The FIXME is wrong, it has nothing to do with this issue. |
Remove duplicate E0396 tests Resolves FIXME rust-lang#13973 (erroneously marked as rust-lang#13972). A test for E0396 already exists in `test/ui/const-deref-ptr.rs`.
Remove duplicate E0396 tests Resolves FIXME rust-lang#13973 (erroneously marked as rust-lang#13972). A test for E0396 already exists in `test/ui/const-deref-ptr.rs`.
Remove duplicate E0396 tests Resolves FIXME rust-lang#13973 (erroneously marked as rust-lang#13972). A test for E0396 already exists in `test/ui/const-deref-ptr.rs`.
Testcase:
Output:
The text was updated successfully, but these errors were encountered: