Closed
Description
(updated test case for bug)
The following test inputs:
fn main() { &fail!() }
or, more elaborately:
struct TrieMapIterator<'self> {
priv node: &'self uint
}
fn main() {
let a = 5;
let _iter = TrieMapIterator{node: &a};
_iter.node = &
fail!()
}
yields the ICE failure:
/tmp/issue5500.rs:8:17: 10:1 error: internal compiler error: ty_region() invoked on in appropriate ty: &ty_bot
/tmp/issue5500.rs:8 _iter.node = &
/tmp/issue5500.rs:9 fail!()
/tmp/issue5500.rs:10 }
(original bug test case follows)
struct TrieMapIterator {
priv node: &'self uint
}
fn main() {
let a = 5;
let iter = TrieMapIterator{node: &a};
iter.node = &
fail!()
}