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
{{ message }}
This repository was archived by the owner on Aug 23, 2022. It is now read-only.
$ cargo check
Checking test-thunder v0.1.0 (/home/xxx/tmp/test-thunder)
error[E0308]: mismatched types
--> src/main.rs:5:1
|
5 | #[thunderclap]
| ^^^^^^^^^^^^^^ expected enum `std::result::Result`, found ()
|
= note: expected type `std::result::Result<&str, ()>`
found type `()`
error[E0308]: match arms have incompatible types
--> src/main.rs:5:1
|
5 | #[thunderclap]
| ^^^^^^^^^^^^^^
| |
| expected enum `std::result::Result`, found ()
| match arm with an incompatible type
|
= note: expected type `std::result::Result<&str, ()>`
found type `()`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0308`.
error: Could not compile `test-thunder`.
I see two issues here:
thunderclap is "stealing" the error positioning, which is unfortunate because on large codebases it could make hard to understand where exactly is the error
Hi, check this code out:
Compilation errors:
I see two issues here:
thunderclapis "stealing" the error positioning, which is unfortunate because on large codebases it could make hard to understand where exactly is the errorCorrect error expected:
Running on
edition = "2018":Opinions?