Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#![feature(element_wise_initialization)]
// ignore-tidy-linelength
fn main() {
let _ = ((5, 6), [(1, 3), (4, 2)], "foo");
}
// END RUST SOURCE
// START rustc.main.SimplifyCfg-initial.after.mir
// let mut _0: ();
// let mut _1: ((i32, i32), [(i32, i32); 2], &'static str);
// bb0: {
// StorageLive(_1);
// ((_1.0: (i32, i32)).0: i32) = const 5i32;
// ((_1.0: (i32, i32)).1: i32) = const 6i32;
// discriminant((_1.0: (i32, i32))) = 0;
// (((_1.1: [(i32, i32); 2]).0: (i32, i32)).0: i32) = const 1i32;
// (((_1.1: [(i32, i32); 2]).0: (i32, i32)).1: i32) = const 3i32;
// discriminant(((_1.1: [(i32, i32); 2]).0: (i32, i32))) = 0;
// (((_1.1: [(i32, i32); 2]).1: (i32, i32)).0: i32) = const 4i32;
// (((_1.1: [(i32, i32); 2]).1: (i32, i32)).1: i32) = const 2i32;
// discriminant(((_1.1: [(i32, i32); 2]).1: (i32, i32))) = 0;
// discriminant((_1.1: [(i32, i32); 2])) = 0;
// (_1.2: &'static str) = const "foo";
// discriminant(_1) = 0;
// StorageDead(_1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.