Skip to content

Cannot relate bound region: ReInfer(53) <= ReLateBound(284, ... #10841

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

Closed
xcv- opened this issue Dec 6, 2013 · 3 comments
Closed

Cannot relate bound region: ReInfer(53) <= ReLateBound(284, ... #10841

xcv- opened this issue Dec 6, 2013 · 3 comments

Comments

@xcv-
Copy link

xcv- commented Dec 6, 2013

I was trying out Rust with a sudoku solver and met a bug

It's the git version (compiled two hours ago) running on i686 ArchLinux, this is the -v output:

rustc 0.9-pre (aa4455e 2013-12-06 01:11:18 -0800)
host: i686-unknown-linux-gnu

Compiler output, backtrace and the file I was compiling: https://gist.github.com/xcv-/c0a79259a7b1280578e5

@alexcrichton
Copy link
Member

cc @nikomatsakis

@nikomatsakis
Copy link
Contributor

Dup #5121

@pnkfelix
Copy link
Member

�Forward-ported example to run on version 0.10-pre (caf17fe 2014-03-21).

Then reduced it down to the following, which still ICE's:

trait Foo<'r> { fn foo(&'r self); }
impl<'r> Foo<'r> for () { fn foo(&'r self) { fail!("placeholder"); } }

fn check<'a, F: Foo<'a>>(cont: &'a F) { cont.foo(); }

fn main() { check(()); }
% rustc /tmp/demo.rs
/tmp/demo.rs:4:41: 4:45 error: internal compiler error: cannot relate bound region: ReScope(43) <= ReEarlyBound(42, 0, a)
/tmp/demo.rs:4 fn check<'a, F: Foo<'a>>(cont: &'a F) { cont.foo(); }
                                                       ^~~~
note: the compiler hit an unexpected failure path. this is a bug.

(but its still a dupe of #5121. I'm just noting this because I am trying to double-check which dupes of #5121 are still reproducible.)

flip1995 pushed a commit to flip1995/rust that referenced this issue Jun 2, 2023
Changelog for Rust 1.70 🔨

Roses are red,
violets are blue,
damn I have an exam to cram,
and this rhyme is a scam

---

This poem is... certainly something... Anyways, hope whoever is reading this, has a lovely day full of sunshine without the need to study :D

---

changelog: none
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants