-
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 instead of coherence error #57162
Comments
That doesn't seem incoherent to me, Should be tagged as regression-from-stable-to-nightly however. |
@xfix Hmm, I forgot about the implicit Some observations:
|
For the record, the following gives the same ICE: trait Foo {}
impl Foo for dyn Send {}
impl<T: Sync + Sync> Foo for T {}
fn main() {} |
Discussed at T-compiler meeting. Assigning to self to bisect. |
Bisected to #56481. cc @nikomatsakis @arielb1 |
Aha, I had a suspicion it might have been @arielb1's PR (or mine). :-) Are you guys okay to resolve this? |
I'll look at it |
I'll note that #56837 fixes that issue, but that's not something we can backport. |
Yup found it. |
On nightly (but not stable), the following code ICEs. This should produce the usual error about incoherent impls, I believe.
playground link
CC @nikomatsakis @arielb1
The text was updated successfully, but these errors were encountered: