Open
Description
enum E1 { A, B }
enum E2 { A1 { x: i32, y: i32 }, B1(u8), C1 }
fn main() {
let a = E1::A;
let aa = E2::A1 { x: 42, y: 123 };
let bb = E2::B1(10);
let cc = E2::C1;
}
Run lldb (without pretty-printers, lldb-1000.0.38.2)
(lldb) p a
(main::E1) $0 = A
(lldb) p aa
(main::E2) $1 = {}
(lldb) p bb
(main::E2) $2 = {}
(lldb) p cc
(main::E2) $3 = {}
It affects both stable (1.32.0) and nightly (1.34.0) Rust toolchains.