-
Notifications
You must be signed in to change notification settings - Fork 13.4k
ICE: unexpected definition #38145
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Minimized:
Probably caused by one of recent @eddyb's PRs. |
I'm having this too, when using an associated type (here D::Error) incorrectly in a value position:
|
Same problem here, in extern crate serde;
struct Foo<N> {
x: N,
}
pub struct Sd<V>(V);
impl<N> serde::ser::Serialize for Sd<Foo<N>>
{
fn serialize<S: serde::ser::Serializer>(&self, s: S) -> Result<S::Ok, S::Error>
{
S::Ok()
}
} |
Should be fixed in #39019 |
This is fixed as of rustc 1.17.0-nightly (62eb605 2017-02-15). I tried all the examples in this issue. |
The code breaking compiler:
Cargo.toml
The output of the compiler:
rustc info:
The text was updated successfully, but these errors were encountered: