mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
14 lines
427 B
Text
14 lines
427 B
Text
error[E0308]: mismatched types
|
|
--> $DIR/drop_elaboration_with_errors.rs:19:5
|
|
|
|
|
LL | fn main() {
|
|
| - expected `()` because of default return type
|
|
LL | Ok(())
|
|
| ^^^^^^ expected `()`, found `Result<(), _>`
|
|
|
|
|
= note: expected unit type `()`
|
|
found enum `Result<(), _>`
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|