]> git.lizzy.rs Git - rust.git/blob - tests/ui/crashes/ice-6250.stderr
Auto merge of #6298 - JohnTitor:fix-example, r=llogiq
[rust.git] / tests / ui / crashes / ice-6250.stderr
1 error[E0601]: `main` function not found in crate `ice_6250`
2   --> $DIR/ice-6250.rs:4:1
3    |
4 LL | / pub struct Cache {
5 LL | |     data: Vec<i32>,
6 LL | | }
7 LL | |
8 ...  |
9 LL | |     }
10 LL | | }
11    | |_^ consider adding a `main` function to `$DIR/ice-6250.rs`
12
13 error[E0308]: mismatched types
14   --> $DIR/ice-6250.rs:12:9
15    |
16 LL |         Some(reference) = cache.data.get(key) {
17    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found `()`
18    |
19 help: you might have meant to use pattern matching
20    |
21 LL |         let Some(reference) = cache.data.get(key) {
22    |         ^^^
23
24 error: aborting due to 2 previous errors
25
26 Some errors have detailed explanations: E0308, E0601.
27 For more information about an error, try `rustc --explain E0308`.