]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-5500-1.rs
New upstream version 1.60.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-5500-1.rs
CommitLineData
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
7struct TrieMapIterator<'a> {
8 node: &'a usize
223e47cc
LB
9}
10
11fn main() {
1a4d82fc
JJ
12 let a = 5;
13 let _iter = TrieMapIterator{node: &a};
48663c56 14 _iter.node = &panic!()
223e47cc 15}