]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/match-cfg-fake-edges.stderr
Rollup merge of #83807 - sjakobi:77548-remove-ignore-annotations, r=Mark-Simulacrum
[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:21: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:35:13
9    |
10 LL |     let x = String::new();
11    |         - move occurs because `x` has type `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: aborting due to 2 previous errors
20
21 Some errors have detailed explanations: E0381, E0382.
22 For more information about an error, try `rustc --explain E0381`.