about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/crashes/ice-6250.stderr
blob: c126547611f363c7819d5a1b38357ec3ec25f5ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
error[E0308]: mismatched types
  --> tests/ui/crashes/ice-6250.rs:12:14
   |
LL |     for reference in vec![1, 2, 3] {
   |         --------- expected due to the type of this binding
...
LL |         Some(reference) = cache.data.get(key) {
   |              ^^^^^^^^^ expected integer, found `&i32`

error[E0308]: mismatched types
  --> tests/ui/crashes/ice-6250.rs:12:9
   |
LL |         Some(reference) = cache.data.get(key) {
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found `()`
   |
help: consider adding `let`
   |
LL |         let Some(reference) = cache.data.get(key) {
   |         +++

error: aborting due to 2 previous errors

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