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(alloc1+0) : &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(alloc0+0) : &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 // _6 = const BAR::promoted[0];
53 // _1 = move _2 as &[&'static i32] (Pointer(Unsize));
54 // _0 = const core::slice::<impl [&'static i32]>::as_ptr(move _1) -> [return: bb2, unwind: bb1];
60 // END rustc.BAR.PromoteTemps.after.mir
61 // START rustc.FOO.PromoteTemps.after.mir
64 // _6 = const FOO::promoted[0];
66 // _1 = move _2 as &[&'static i32] (Pointer(Unsize));
67 // _0 = const core::slice::<impl [&'static i32]>::as_ptr(move _1) -> [return: bb2, unwind: bb1];
73 // END rustc.FOO.PromoteTemps.after.mir