-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Missing diagnostic for non-sized type of ptr::null_mut
#61870
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
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
This comment has been minimized.
This comment has been minimized.
Note that if one comments out the error[E0282]: type annotations needed
--> src/main.rs:5:41
|
| let x: *mut (dyn Trait + 'static) = std::ptr::null_mut();
| ^^^^^^^^^^^^^^^^^^ cannot infer type for `T` |
ptr::null_mut
ptr::null_mut
Bisected to find regression in |
@rustbot modify labels to -E-needs-bisection. |
Current output:
Hiding |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
When I ran this on rustc 1.32.0, I got this error message:
But when I ran this on rustc nightly, I got this error message:
Meta
The text was updated successfully, but these errors were encountered: