Hardware
Macbook Pro 16-inch
MacOS Catalina 10.15.6
Software
Rust Compiler Version:
Rust LLDB Version(Not using gdb):
IDE:
LLDB Version(bundled with IDE):
C Compiler Info:
C++ Compiler Info:
Plugin Version:
The debugger is showing the wrong value for the test variable in the following code:
```(rust)
fn main() {
let test: Ordering = 25.cmp(&15);
match test {
Ordering::Less => println!("Too small!"),
Ordering::Greater => println!("Too big!"),
Ordering::Equal => println!("You win!"),
}
}

I would expect the value shown for test in the variables section to be `core::cmp::Ordering::Greater` but instead its `core::cmp::Ordering::Equal`.
The output from running the program is `Too big!` as expected - the debugger just isn't showing the correct value that the variable actually holds.
Has anyone seen this with other IDEs or environments? Or is there just something wrong with my debugger or setup?
## Steps to reproduce
1) run `cargo new some-app`
2) paste the following into `src/main.rs`:
```(rust)
use std::cmp::Ordering;
fn main() {
let test: Ordering = 25.cmp(&15);
match test {
Ordering::Less => println!("Too small!"),
Ordering::Greater => println!("Too big!"),
Ordering::Equal => println!("You win!"),
}
}
Run the debugger - the value of test should be shown as core::cmp::Ordering::Equal.
@es50678 Thank you for reporting! Unit-like (C-style) enums are not supported so far in LLDB. Please follow the corresponding meta issue: https://github.com/intellij-rust/intellij-rust/issues/4548
Also, note that you can use Create new issue action (can be called using cmd+shift+A) to open a pre-filled issue with all your environment information right from the IDE.
@ortem Thank you for responding and the link to the meta ticket!
How would one go about contributing a fix for this?
@es50678 this bug should be fixed in LLDB bundled with CLion but not in IJ Rust plugin. The good news is that I鈥檓 working on it so probably it will be fixed soon :)
Most helpful comment
@es50678 this bug should be fixed in LLDB bundled with CLion but not in IJ Rust plugin. The good news is that I鈥檓 working on it so probably it will be fixed soon :)