mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
16 lines
321 B
Rust
16 lines
321 B
Rust
// skip-filecheck
|
|
// unit-test: SimplifyLocals-before-const-prop
|
|
|
|
fn map(x: Option<Box<()>>) -> Option<Box<()>> {
|
|
match x {
|
|
None => None,
|
|
Some(x) => Some(x),
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
map(None);
|
|
}
|
|
|
|
// EMIT_MIR simplify_locals_removes_unused_discriminant_reads.map.SimplifyLocals-before-const-prop.diff
|