ICE with #[derive(Copy)]
, missing trait bound, and blanket impl
#38821
Labels
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
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: