-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Internal compiler error: cannot relate bound region (likely caused by conservative_impl_trait
)
#39872
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
Comments
conservative_impl_trait
)
I just ran into this. Managed to reduce the crash to
Explicit lifetimes indeed fix it:
|
don't know if this helps, but I came up with minimal test case #![feature(conservative_impl_trait)]
fn will_ice(something: &u32) -> impl Iterator<Item = &u32> {
}
|
topecongiro
added a commit
to topecongiro/rust
that referenced
this issue
Dec 30, 2017
Closes rust-lang#29924. Closes rust-lang#38857. Closes rust-lang#39665. Closes rust-lang#39872. Closes rust-lang#39553. Closes rust-lang#41210. Closes rust-lang#41880. Closes rust-lang#43483.
bors
added a commit
that referenced
this issue
Dec 31, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related code:
Compiler panic:
Note that everything is fine if I annotate the lifetimes:
I am running
rustc 1.17.0-nightly (ba7cf7cc5 2017-02-11)
, the MSVC x64 version.The text was updated successfully, but these errors were encountered: