]> git.lizzy.rs Git - rust.git/blob - tests/ui/crashes/ice-6250.stderr
Merge remote-tracking branch 'upstream/master' into rustup
[rust.git] / tests / ui / crashes / ice-6250.stderr
1 error[E0658]: destructuring assignments are unstable
2   --> $DIR/ice-6250.rs:12:25
3    |
4 LL |         Some(reference) = cache.data.get(key) {
5    |         --------------- ^
6    |         |
7    |         cannot assign to this expression
8    |
9    = note: see issue #71126 <https://github.com/rust-lang/rust/issues/71126> for more information
10    = help: add `#![feature(destructuring_assignment)]` to the crate attributes to enable
11
12 error[E0601]: `main` function not found in crate `ice_6250`
13   --> $DIR/ice-6250.rs:4:1
14    |
15 LL | / pub struct Cache {
16 LL | |     data: Vec<i32>,
17 LL | | }
18 LL | |
19 ...  |
20 LL | |     }
21 LL | | }
22    | |_^ consider adding a `main` function to `$DIR/ice-6250.rs`
23
24 error[E0308]: mismatched types
25   --> $DIR/ice-6250.rs:12:14
26    |
27 LL |     for reference in vec![1, 2, 3] {
28    |         --------- expected due to the type of this binding
29 ...
30 LL |         Some(reference) = cache.data.get(key) {
31    |              ^^^^^^^^^ expected integer, found `&i32`
32    |
33 help: consider dereferencing the borrow
34    |
35 LL |         Some(*reference) = cache.data.get(key) {
36    |              +
37
38 error[E0308]: mismatched types
39   --> $DIR/ice-6250.rs:12:9
40    |
41 LL |         Some(reference) = cache.data.get(key) {
42    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found `()`
43
44 error: aborting due to 4 previous errors
45
46 Some errors have detailed explanations: E0308, E0601, E0658.
47 For more information about an error, try `rustc --explain E0308`.