]> git.proxmox.com Git - rustc.git/blob - src/test/mir-opt/simplify-locals-removes-unused-discriminant-reads.rs
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / mir-opt / simplify-locals-removes-unused-discriminant-reads.rs
1 fn map(x: Option<Box<()>>) -> Option<Box<()>> {
2 match x {
3 None => None,
4 Some(x) => Some(x),
5 }
6 }
7
8 fn main() {
9 map(None);
10 }
11
12 // EMIT_MIR rustc.map.SimplifyLocals.diff