fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
757 B22 linesraw
1error[E0381]: use of possibly-uninitialized variable: `x`
2  --> $DIR/match-cfg-fake-edges.rs:21:13
3   |
4LL |             x;
5   |             ^ use of possibly-uninitialized `x`
6
7error[E0382]: use of moved value: `x`
8  --> $DIR/match-cfg-fake-edges.rs:35:13
9   |
10LL |     let x = String::new();
11   |         - move occurs because `x` has type `std::string::String`, which does not implement the `Copy` trait
12...
13LL |         false if { drop(x); true } => 1,
14   |                         - value moved here
15LL |         true => {
16LL |             x;
17   |             ^ value used here after move
18
19error: aborting due to 2 previous errors
20
21Some errors have detailed explanations: E0381, E0382.
22For more information about an error, try `rustc --explain E0381`.