mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
62ba3e70a1
The previous output was unintuitive to users.
19 lines
546 B
Plaintext
19 lines
546 B
Plaintext
error[E0308]: mismatched types
|
|
--> $DIR/hidden-parent.rs:6:26
|
|
|
|
|
LL | let x: Option<i32> = 1i32;
|
|
| ----------- ^^^^ expected `Option<i32>`, found `i32`
|
|
| |
|
|
| expected due to this
|
|
|
|
|
= note: expected enum `Option<i32>`
|
|
found type `i32`
|
|
help: try wrapping the expression in `Some`
|
|
|
|
|
LL | let x: Option<i32> = Some(1i32);
|
|
| +++++ +
|
|
|
|
error: aborting due to previous error
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|