]>
git.proxmox.com Git - rustc.git/blob - src/test/mir-opt/basic_assignment.rs
1 // this tests move up progration, which is not yet implemented
3 // EMIT_MIR rustc.main.SimplifyCfg-initial.after.mir
5 // Check codegen for assignments (`a = b`) where the left-hand-side is
6 // not yet initialized. Assignments tend to be absent in simple code,
7 // so subtle breakage in them can leave a quite hard-to-find trail of
14 // Since boolean does not require drop, this can be a simple
18 let drop_x
: Option
<Box
<u32>> = None
;
21 // Since the type of `drop_y` has drop, we generate a `replace`