summaryrefslogtreecommitdiffstats
path: root/tests/ui/typeck/tag-that-dare-not-speak-its-name.stderr
blob: 3a7e2068ca63f8d5f0bba0606def73a9856ea5cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error[E0308]: mismatched types
  --> $DIR/tag-that-dare-not-speak-its-name.rs:11:20
   |
LL |     let x : char = last(y);
   |             ----   ^^^^^^^ expected `char`, found `Option<_>`
   |             |
   |             expected due to this
   |
   = note: expected type `char`
              found enum `Option<_>`
help: consider using `Option::expect` to unwrap the `Option<_>` value, panicking if the value is an `Option::None`
   |
LL |     let x : char = last(y).expect("REASON");
   |                           +++++++++++++++++

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.