]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/match-on-borrowed.stderr
Rollup merge of #83807 - sjakobi:77548-remove-ignore-annotations, r=Mark-Simulacrum
[rust.git] / src / test / ui / nll / match-on-borrowed.stderr
1 error[E0503]: cannot use `e` because it was mutably borrowed
2   --> $DIR/match-on-borrowed.rs:49:9
3    |
4 LL |         E::V(ref mut x, _) => x,
5    |              --------- borrow of `e.0` occurs here
6 ...
7 LL |         E::V(_, r) => (),
8    |         ^^^^^^^^^^ use of borrowed `e.0`
9 ...
10 LL |     x;
11    |     - borrow later used here
12
13 error[E0503]: cannot use `*f` because it was mutably borrowed
14   --> $DIR/match-on-borrowed.rs:62:9
15    |
16 LL |         E::V(ref mut x, _) => x,
17    |              --------- borrow of `f.0` occurs here
18 ...
19 LL |         E::V(_, r) => (),
20    |         ^^^^^^^^^^ use of borrowed `f.0`
21 ...
22 LL |     x;
23    |     - borrow later used here
24
25 error[E0503]: cannot use `t` because it was mutably borrowed
26   --> $DIR/match-on-borrowed.rs:80:9
27    |
28 LL |     let x = &mut t;
29    |             ------ borrow of `t` occurs here
30 LL |     match t {
31 LL |         true => (),
32    |         ^^^^ use of borrowed `t`
33 ...
34 LL |     x;
35    |     - borrow later used here
36
37 error[E0381]: use of possibly-uninitialized variable: `n`
38   --> $DIR/match-on-borrowed.rs:90:11
39    |
40 LL |     match n {}
41    |           ^ use of possibly-uninitialized `n`
42
43 error: aborting due to 4 previous errors
44
45 Some errors have detailed explanations: E0381, E0503.
46 For more information about an error, try `rustc --explain E0381`.