]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/crashes/ice-6250.stderr
Merge commit 'b20d4c155d2fe3a8391f86dcf9a8c49e17188703' into clippyup
[rust.git] / src / tools / clippy / 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`.