summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/dont-suggest-doc-hidden-variant-for-enum/hidden-parent.stderr
blob: d92b8127910141c9a703d6afd543a1148dfa8773 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error[E0308]: mismatched types
  --> $DIR/hidden-parent.rs:6:26
   |
LL |     let x: Option<i32> = 1i32;
   |            -----------   ^^^^ expected enum `Option`, 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`.