• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0308]: mismatched types
2  --> $DIR/ice-6250.rs:12:14
3   |
4LL |     for reference in vec![1, 2, 3] {
5   |         --------- expected due to the type of this binding
6...
7LL |         Some(reference) = cache.data.get(key) {
8   |              ^^^^^^^^^ expected integer, found `&i32`
9
10error[E0308]: mismatched types
11  --> $DIR/ice-6250.rs:12:9
12   |
13LL |         Some(reference) = cache.data.get(key) {
14   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found `()`
15   |
16help: consider adding `let`
17   |
18LL |         let Some(reference) = cache.data.get(key) {
19   |         +++
20
21error: aborting due to 2 previous errors
22
23For more information about this error, try `rustc --explain E0308`.
24