Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 371 Bytes
// MIR doesn't generate an error because the assignment isn't reachable. This
// is OK because the test is here to check that the compiler doesn't ICE (cf.
// #5500).
// build-pass (FIXME(62277): could be check-pass?)
struct TrieMapIterator<'a> {
node: &'a usize
fn main() {
let a = 5;
let _iter = TrieMapIterator{node: &a};
_iter.node = &panic!()
You can’t perform that action at this time.