-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 #[derive(Copy)]
, missing trait bound, and blanket impl
#38821
Comments
Slightly simplified repro script: https://is.gd/HXaz0L |
Errors today, which is I think correct. E-needstest.
|
@Mark-Simulacrum I want to contribute the test for this issue. Is that correct? |
@venkatagiri I think a compile-fail test would be enough here; we primarily want to just make sure it doesn't ICE. To do that, I'd say that the example code needs to be put into a file in |
…ulacrum regression test for rust-lang#38821 Closes rust-lang#38821 r? @Mark-Simulacrum
I have tested this on both 1.13 and on nightly-2016-12-28. This this is the script to reproduce: https://is.gd/PWV89w
The code is invalid due to missing constraint
Col::SqlType: IntoNullable
on line 26. The expected error is:But the compiler instead ICEs. If
#[derive(Copy)]
is removed, the compiler gives the error message as expected. If the blanketimpl<T: NotNull> IntoNullable for T
(lines 10-12 in the script) is removed, the compiler gives the error message as expected.The text was updated successfully, but these errors were encountered: