]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/simplify-locals-removes-unused-discriminant-reads.rs
Rollup merge of #100382 - jackh726:gat-self-outlives-input, r=compiler-errors
[rust.git] / src / test / mir-opt / simplify-locals-removes-unused-discriminant-reads.rs
1 // compile-flags: -Zunsound-mir-opts
2
3 fn map(x: Option<Box<()>>) -> Option<Box<()>> {
4     match x {
5         None => None,
6         Some(x) => Some(x),
7     }
8 }
9
10 fn main() {
11     map(None);
12 }
13
14 // EMIT_MIR_FOR_EACH_BIT_WIDTH
15 // EMIT_MIR simplify_locals_removes_unused_discriminant_reads.map.SimplifyLocals.diff