]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/simplify_locals_removes_unused_discriminant_reads.rs
Add #[const_trait] where needed in tests.
[rust.git] / src / test / mir-opt / simplify_locals_removes_unused_discriminant_reads.rs
1 // unit-test: SimplifyLocals
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 simplify_locals_removes_unused_discriminant_reads.map.SimplifyLocals.diff