]>
Commit | Line | Data |
---|---|---|
48663c56 XL |
1 | // MIR doesn't generate an error because the assignment isn't reachable. This |
2 | // is OK because the test is here to check that the compiler doesn't ICE (cf. | |
3 | // #5500). | |
4 | ||
60c5eb7d | 5 | // check-pass |
ea8adc8c | 6 | |
1a4d82fc JJ |
7 | struct TrieMapIterator<'a> { |
8 | node: &'a usize | |
223e47cc LB |
9 | } |
10 | ||
11 | fn main() { | |
1a4d82fc JJ |
12 | let a = 5; |
13 | let _iter = TrieMapIterator{node: &a}; | |
48663c56 | 14 | _iter.node = &panic!() |
223e47cc | 15 | } |