rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
99k stars 12.79k forks source link

ICE cannot relate bound region #20186

Closed edef1c closed 9 years ago

edef1c commented 9 years ago
src/serial.rs:10:17: 10:26 error: internal compiler error: cannot relate bound region: ReLateBound(DebruijnIndex { depth: 1 }, BrNamed(DefId { krate: 1, node: 61296 }, 'a)) <= '_#1r
src/serial.rs:10     for byte in s.bytes() {
                                 ^~~~~~~~~
  pub fn puts(&self, s: &str) {
    for byte in s.bytes() {
      self.putc(byte)
    }
  }
shepmaster commented 9 years ago

Similar error message to #20225.