]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-5500-1.rs
Auto merge of #62355 - Centril:rollup-xnxtcgm, r=Centril
[rust.git] / src / test / ui / issues / issue-5500-1.rs
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
5 // build-pass (FIXME(62277): could be check-pass?)
6
7 struct TrieMapIterator<'a> {
8     node: &'a usize
9 }
10
11 fn main() {
12     let a = 5;
13     let _iter = TrieMapIterator{node: &a};
14     _iter.node = &panic!()
15 }