]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/match-cfg-fake-edges.stderr
fix merge conflicts
[rust.git] / src / test / ui / nll / match-cfg-fake-edges.stderr
1 error[E0381]: use of possibly uninitialized variable: `x`
2   --> $DIR/match-cfg-fake-edges.rs:23:13
3    |
4 LL |             x;
5    |             ^ use of possibly uninitialized `x`
6
7 error[E0382]: use of moved value: `x`
8   --> $DIR/match-cfg-fake-edges.rs:37:13
9    |
10 LL |     let x = String::new();
11    |         - move occurs because `x` has type `std::string::String`, which does not implement the `Copy` trait
12 ...
13 LL |         false if { drop(x); true } => 1,
14    |                         - value moved here
15 LL |         true => {
16 LL |             x;
17    |             ^ value used here after move
18
19 error[E0503]: cannot use `y.1` because it was mutably borrowed
20   --> $DIR/match-cfg-fake-edges.rs:49:17
21    |
22 LL |     let r = &mut y.1;
23    |             -------- borrow of `y.1` occurs here
24 ...
25 LL |         (false, true) => 1,
26    |                 ^^^^ use of borrowed `y.1`
27 LL |         (true, _) => {
28 LL |             r;
29    |             - borrow later used here
30
31 error: aborting due to 3 previous errors
32
33 Some errors have detailed explanations: E0381, E0382, E0503.
34 For more information about an error, try `rustc --explain E0381`.