cargo run
Compiling rust_test v0.1.0 (/root/rust_test)
error[E0308]: mismatched types
--> src/main.rs:14:9
|
9 | A,
| - unit variant defined here
...
13 | match THE_TYPE {
| -------- this expression has type `THE_TYPE`
14 | TheType::A => {
| ^^^^^^^^^^ expected struct `THE_TYPE`, found enum `TheType`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.
error: could not compile `rust_test`.
To learn more, run the command again with --verbose.
as title.
code sample:
compiler console: