You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0599]: no variant named `IO` found for type `MainError` in the current scope
--> src\main.rs:12:9
|
5 | enum MainError {
| -------------- variant `IO` not found here
...
12 | Self::IO(e)
| ^^^^^^^^ variant not found in `MainError`
|
= note: did you mean `MainError::IO`?
The error message is helpful (it indicates correct code, MainError::IO). However, the first line of message is confusing, and E0599 does not help much to understand why this code is not working.
Can we improve error messages for such situations?
The text was updated successfully, but these errors were encountered:
error: enum variants on type aliases are experimental
--> src/lib.rs:10:9
|
10 | Self::IO(e)
| ^^^^^^^^
|
= help: add `#![feature(type_alias_enum_variants)]` to the crate attributes to enable
error: enum variants on type aliases are experimental
--> src/lib.rs:16:9
|
16 | Self::Parse(e)
| ^^^^^^^^^^^
|
= help: add `#![feature(type_alias_enum_variants)]` to the crate attributes to enable
Compiling above code give errors,
The error message is helpful (it indicates correct code,
MainError::IO
). However, the first line of message is confusing, and E0599 does not help much to understand why this code is not working.Can we improve error messages for such situations?
The text was updated successfully, but these errors were encountered: