7 static mut BAR: *const &'static i32 = [&Y].as_ptr();
9 static mut FOO: *const &'static i32 = [unsafe { &X }].as_ptr();
14 // START rustc.FOO.PromoteTemps.before.mir
17 // _5 = const Scalar(AllocId(1).0x0) : &i32;
21 // _1 = move _2 as &[&'static i32] (Pointer(Unsize));
22 // _0 = const core::slice::<impl [&'static i32]>::as_ptr(move _1) -> [return: bb2, unwind: bb1];
30 // END rustc.FOO.PromoteTemps.before.mir
31 // START rustc.BAR.PromoteTemps.before.mir
34 // _5 = const Scalar(AllocId(0).0x0) : &i32;
38 // _1 = move _2 as &[&'static i32] (Pointer(Unsize));
39 // _0 = const core::slice::<impl [&'static i32]>::as_ptr(move _1) -> [return: bb2, unwind: bb1];
47 // END rustc.BAR.PromoteTemps.before.mir
48 // START rustc.BAR.PromoteTemps.after.mir
51 // _2 = &(promoted[0]: [&'static i32; 1]);
52 // _1 = move _2 as &[&'static i32] (Pointer(Unsize));
53 // _0 = const core::slice::<impl [&'static i32]>::as_ptr(move _1) -> [return: bb2, unwind: bb1];
59 // END rustc.BAR.PromoteTemps.after.mir
60 // START rustc.FOO.PromoteTemps.after.mir
63 // _2 = &(promoted[0]: [&'static i32; 1]);
64 // _1 = move _2 as &[&'static i32] (Pointer(Unsize));
65 // _0 = const core::slice::<impl [&'static i32]>::as_ptr(move _1) -> [return: bb2, unwind: bb1];
71 // END rustc.FOO.PromoteTemps.after.mir